Struct DWriteHitTestMetrics
Geometry enclosing of text positions.
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteHitTestMetrics : IEquatable<DWriteHitTestMetrics>
Properties
|
Edit this page
View Source
BidiLevel
Gets the bidi level of text positions enclosed within the geometry.
Declaration
public uint BidiLevel { get; }
Property Value
|
Edit this page
View Source
Height
Gets the geometry's height.
Declaration
public float Height { get; }
Property Value
|
Edit this page
View Source
IsText
Gets a value indicating whether the geometry encloses text.
Declaration
public bool IsText { get; }
Property Value
|
Edit this page
View Source
IsTrimmed
Gets a value indicating whether the range is trimmed.
Declaration
public bool IsTrimmed { get; }
Property Value
|
Edit this page
View Source
Left
Gets the left position of the top-left coordinate of the geometry.
Declaration
public float Left { get; }
Property Value
|
Edit this page
View Source
Length
Gets the number of text positions within the geometry.
Declaration
public uint Length { get; }
Property Value
|
Edit this page
View Source
TextPosition
Gets the first text position within the geometry.
Declaration
public uint TextPosition { get; }
Property Value
|
Edit this page
View Source
Top
Gets the top position of the top-left coordinate of the geometry.
Declaration
public float Top { get; }
Property Value
|
Edit this page
View Source
Width
Gets the geometry's width.
Declaration
public float Width { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteHitTestMetrics)
Declaration
public readonly bool Equals(DWriteHitTestMetrics other)
Parameters
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override readonly bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Overrides
|
Edit this page
View Source
NativeReadFrom(nint)
Declaration
public static DWriteHitTestMetrics NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteHitTestMetrics>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteHitTestMetrics> objects)
Parameters
|
Edit this page
View Source
NativeRequiredSize()
Declaration
public static int NativeRequiredSize()
Returns
|
Edit this page
View Source
NativeRequiredSize(int)
Declaration
public static int NativeRequiredSize(int count)
Parameters
| Type |
Name |
Description |
| int |
count |
|
Returns
|
Edit this page
View Source
NativeWriteTo(nint, in DWriteHitTestMetrics)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteHitTestMetrics obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteHitTestMetrics>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteHitTestMetrics> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(DWriteHitTestMetrics, DWriteHitTestMetrics)
Declaration
public static bool operator ==(DWriteHitTestMetrics left, DWriteHitTestMetrics right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteHitTestMetrics, DWriteHitTestMetrics)
Declaration
public static bool operator !=(DWriteHitTestMetrics left, DWriteHitTestMetrics right)
Parameters
Returns
Implements