Struct DWriteStrikethrough
The DWRITE_STRIKETHROUGH structure contains information about the size and
placement of strikethroughs. All coordinates are in device independent
pixels (DIPs).
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteStrikethrough : IEquatable<DWriteStrikethrough>
Properties
|
Edit this page
View Source
FlowDirection
Gets or sets the flow direction of the text associated with the strikethrough. This
value is used to interpret whether the thickness value advances top to
bottom, left to right, or right to left.
Declaration
public DWriteFlowDirection FlowDirection { get; set; }
Property Value
|
Edit this page
View Source
LocaleName
Gets or sets the locale of the range. Can be pertinent where the locale affects the style.
Declaration
public char* LocaleName { get; set; }
Property Value
|
Edit this page
View Source
MeasuringMode
Gets or sets the measuring mode can be useful to the renderer to determine how
underlines are rendered, e.g. rounding the thickness to a whole pixel
in GDI-compatible modes.
Declaration
public DWriteMeasuringMode MeasuringMode { get; set; }
Property Value
|
Edit this page
View Source
Offset
Gets or sets the offset of the strikethrough from the baseline.
A positive offset represents a position below the baseline and
a negative offset is above.
Declaration
public float Offset { get; set; }
Property Value
|
Edit this page
View Source
ReadingDirection
Gets or sets the reading direction of the text associated with the strikethrough. This
value is used to interpret whether the width value runs horizontally
or vertically.
Declaration
public DWriteReadingDirection ReadingDirection { get; set; }
Property Value
|
Edit this page
View Source
Thickness
Gets or sets the thickness of the strikethrough, measured perpendicular to the
baseline.
Declaration
public float Thickness { get; set; }
Property Value
|
Edit this page
View Source
Width
Gets or sets the width of the strikethrough, measured parallel to the baseline.
Declaration
public float Width { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(DWriteStrikethrough)
Declaration
public readonly bool Equals(DWriteStrikethrough 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 DWriteStrikethrough NativeReadFrom(nint buffer)
Parameters
| Type |
Name |
Description |
| nint |
buffer |
|
Returns
|
Edit this page
View Source
NativeReadFrom(nint, Span<DWriteStrikethrough>)
Declaration
public static void NativeReadFrom(nint buffer, Span<DWriteStrikethrough> 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 DWriteStrikethrough)
Declaration
public static void NativeWriteTo(nint buffer, in DWriteStrikethrough obj)
Parameters
|
Edit this page
View Source
NativeWriteTo(nint, ReadOnlySpan<DWriteStrikethrough>)
Declaration
public static void NativeWriteTo(nint buffer, ReadOnlySpan<DWriteStrikethrough> objects)
Parameters
Operators
|
Edit this page
View Source
operator ==(DWriteStrikethrough, DWriteStrikethrough)
Declaration
public static bool operator ==(DWriteStrikethrough left, DWriteStrikethrough right)
Parameters
Returns
|
Edit this page
View Source
operator !=(DWriteStrikethrough, DWriteStrikethrough)
Declaration
public static bool operator !=(DWriteStrikethrough left, DWriteStrikethrough right)
Parameters
Returns
Implements