Struct DWriteLineMetrics
The DWRITE_LINE_METRICS structure contains information about a formatted
line of text.
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteLineMetrics : IEquatable<DWriteLineMetrics>
Properties
|
Edit this page
View Source
Baseline
Gets the distance from the top of the line to its baseline.
Declaration
public float Baseline { get; }
Property Value
|
Edit this page
View Source
Height
Gets the height of the line as measured from top to bottom.
Declaration
public float Height { get; }
Property Value
|
Edit this page
View Source
IsTrimmed
Gets a value indicating whether the line is trimmed.
Declaration
public bool IsTrimmed { get; }
Property Value
|
Edit this page
View Source
Length
Gets the number of total text positions in the line.
This includes any trailing whitespace and newline characters.
Declaration
public uint Length { get; }
Property Value
|
Edit this page
View Source
NewlineLength
Gets the number of characters in the newline sequence at the end of the line.
If the count is zero, then the line was either wrapped or it is the
end of the text.
Declaration
public uint NewlineLength { get; }
Property Value
|
Edit this page
View Source
TrailingWhitespaceLength
Gets the number of whitespace positions at the end of the line. Newline
sequences are considered whitespace.
Declaration
public uint TrailingWhitespaceLength { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteLineMetrics)
Declaration
public readonly bool Equals(DWriteLineMetrics 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 DWriteLineMetrics NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteLineMetrics>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteLineMetrics> 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 DWriteLineMetrics)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteLineMetrics obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteLineMetrics>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteLineMetrics> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(DWriteLineMetrics, DWriteLineMetrics)
Declaration
public static bool operator ==(DWriteLineMetrics left, DWriteLineMetrics right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteLineMetrics, DWriteLineMetrics)
Declaration
public static bool operator !=(DWriteLineMetrics left, DWriteLineMetrics right)
Parameters
Returns
Implements