Struct DWriteTextRange
The DWRITE_TEXT_RANGE structure specifies a range of text positions where format is applied.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteTextRange : IEquatable<DWriteTextRange>
Constructors
| Edit this page View SourceDWriteTextRange(uint, uint)
Initializes a new instance of the DWriteTextRange struct.
Declaration
public DWriteTextRange(uint startPosition, uint length)
Parameters
Type | Name | Description |
---|---|---|
uint | startPosition | The start text position of the range. |
uint | length | The number of text positions in the range. |
Properties
| Edit this page View SourceLength
Gets or sets the number of text positions in the range.
Declaration
public uint Length { get; set; }
Property Value
Type | Description |
---|---|
uint |
StartPosition
Gets or sets the start text position of the range.
Declaration
public uint StartPosition { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(DWriteTextRange)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DWriteTextRange other)
Parameters
Type | Name | Description |
---|---|---|
DWriteTextRange | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(DWriteTextRange, DWriteTextRange)
Compares two DWriteTextRange objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DWriteTextRange left, DWriteTextRange right)
Parameters
Type | Name | Description |
---|---|---|
DWriteTextRange | left | The left DWriteTextRange to compare. |
DWriteTextRange | right | The right DWriteTextRange to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteTextRange, DWriteTextRange)
Compares two DWriteTextRange objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DWriteTextRange left, DWriteTextRange right)
Parameters
Type | Name | Description |
---|---|---|
DWriteTextRange | left | The left DWriteTextRange to compare. |
DWriteTextRange | right | The right DWriteTextRange to compare. |
Returns
Type | Description |
---|---|
bool |