Struct DWriteInlineObjectMetrics
Properties describing the geometric measurement of an
application-defined inline object.
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteInlineObjectMetrics : IEquatable<DWriteInlineObjectMetrics>
Properties
|
Edit this page
View Source
Baseline
Gets the distance from the top of the object to the baseline where it is lined up with the adjacent text.
If the baseline is at the bottom, baseline simply equals height.
Declaration
public float Baseline { get; }
Property Value
|
Edit this page
View Source
Height
Gets the height of the inline object as measured from top to bottom.
Declaration
public float Height { get; }
Property Value
|
Edit this page
View Source
SupportsSideways
Gets a value indicating whether the object is to be placed upright or alongside the text baseline
for vertical text.
Declaration
public bool SupportsSideways { get; }
Property Value
|
Edit this page
View Source
Width
Gets the width of the inline object.
Declaration
public float Width { get; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteInlineObjectMetrics)
Declaration
public readonly bool Equals(DWriteInlineObjectMetrics 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 DWriteInlineObjectMetrics NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteInlineObjectMetrics>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteInlineObjectMetrics> 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 DWriteInlineObjectMetrics)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteInlineObjectMetrics obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteInlineObjectMetrics>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteInlineObjectMetrics> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(DWriteInlineObjectMetrics, DWriteInlineObjectMetrics)
Declaration
public static bool operator ==(DWriteInlineObjectMetrics left, DWriteInlineObjectMetrics right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteInlineObjectMetrics, DWriteInlineObjectMetrics)
Declaration
public static bool operator !=(DWriteInlineObjectMetrics left, DWriteInlineObjectMetrics right)
Parameters
Returns
Implements