The DWRITE_TEXT_RANGE structure specifies a range of text positions where format is applied.
Assembly: JeremyAnsel.DirectX.DWrite.dll
public struct DWriteTextRange : IEquatable<DWriteTextRange>
Constructors
|
Edit this page
View Source
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 Source
Gets or sets the number of text positions in the range.
Declaration
public uint Length { get; set; }
Property Value
|
Edit this page
View Source
Gets or sets the start text position of the range.
Declaration
public uint StartPosition { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public readonly bool Equals(DWriteTextRange other)
Parameters
Returns
|
Edit this page
View Source
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
Declaration
public static DWriteTextRange NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteTextRange> objects)
Parameters
|
Edit this page
View Source
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
Declaration
public static void NativeWriteTo(nint buffer, in DWriteTextRange obj)
Parameters
|
Edit this page
View Source
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteTextRange> objects)
Parameters
Operators
|
Edit this page
View Source
Declaration
public static bool operator ==(DWriteTextRange left, DWriteTextRange right)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static bool operator !=(DWriteTextRange left, DWriteTextRange right)
Parameters
Returns
Implements