Struct DWriteHitTestMetrics
Geometry enclosing of text positions.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteHitTestMetrics : IEquatable<DWriteHitTestMetrics>
Properties
| Edit this page View SourceBidiLevel
Gets the bidi level of text positions enclosed within the geometry.
Declaration
public uint BidiLevel { get; }
Property Value
Type | Description |
---|---|
uint |
Height
Gets the geometry's height.
Declaration
public float Height { get; }
Property Value
Type | Description |
---|---|
float |
IsText
Gets a value indicating whether the geometry encloses text.
Declaration
public bool IsText { get; }
Property Value
Type | Description |
---|---|
bool |
IsTrimmed
Gets a value indicating whether the range is trimmed.
Declaration
public bool IsTrimmed { get; }
Property Value
Type | Description |
---|---|
bool |
Left
Gets the left position of the top-left coordinate of the geometry.
Declaration
public float Left { get; }
Property Value
Type | Description |
---|---|
float |
Length
Gets the number of text positions within the geometry.
Declaration
public uint Length { get; }
Property Value
Type | Description |
---|---|
uint |
TextPosition
Gets the first text position within the geometry.
Declaration
public uint TextPosition { get; }
Property Value
Type | Description |
---|---|
uint |
Top
Gets the top position of the top-left coordinate of the geometry.
Declaration
public float Top { get; }
Property Value
Type | Description |
---|---|
float |
Width
Gets the geometry's width.
Declaration
public float Width { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(DWriteHitTestMetrics)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DWriteHitTestMetrics other)
Parameters
Type | Name | Description |
---|---|---|
DWriteHitTestMetrics | 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 ==(DWriteHitTestMetrics, DWriteHitTestMetrics)
Compares two DWriteHitTestMetrics objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DWriteHitTestMetrics left, DWriteHitTestMetrics right)
Parameters
Type | Name | Description |
---|---|---|
DWriteHitTestMetrics | left | The left DWriteHitTestMetrics to compare. |
DWriteHitTestMetrics | right | The right DWriteHitTestMetrics to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteHitTestMetrics, DWriteHitTestMetrics)
Compares two DWriteHitTestMetrics objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DWriteHitTestMetrics left, DWriteHitTestMetrics right)
Parameters
Type | Name | Description |
---|---|---|
DWriteHitTestMetrics | left | The left DWriteHitTestMetrics to compare. |
DWriteHitTestMetrics | right | The right DWriteHitTestMetrics to compare. |
Returns
Type | Description |
---|---|
bool |