Struct DWriteStrikethrough
The DWRITE_STRIKETHROUGH structure contains information about the size and placement of strikethroughs. All coordinates are in device independent pixels (DIPs).
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteStrikethrough : IEquatable<DWriteStrikethrough>
Properties
| Edit this page View SourceFlowDirection
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
Type | Description |
---|---|
DWriteFlowDirection |
LocaleName
Gets or sets the locale of the range. Can be pertinent where the locale affects the style.
Declaration
public string LocaleName { get; set; }
Property Value
Type | Description |
---|---|
string |
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
Type | Description |
---|---|
DWriteMeasuringMode |
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
Type | Description |
---|---|
float |
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
Type | Description |
---|---|
DWriteReadingDirection |
Thickness
Gets or sets the thickness of the strikethrough, measured perpendicular to the baseline.
Declaration
public float Thickness { get; set; }
Property Value
Type | Description |
---|---|
float |
Width
Gets or sets the width of the strikethrough, measured parallel to the baseline.
Declaration
public float Width { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(DWriteStrikethrough)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DWriteStrikethrough other)
Parameters
Type | Name | Description |
---|---|---|
DWriteStrikethrough | 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 ==(DWriteStrikethrough, DWriteStrikethrough)
Compares two DWriteStrikethrough objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DWriteStrikethrough left, DWriteStrikethrough right)
Parameters
Type | Name | Description |
---|---|---|
DWriteStrikethrough | left | The left DWriteStrikethrough to compare. |
DWriteStrikethrough | right | The right DWriteStrikethrough to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteStrikethrough, DWriteStrikethrough)
Compares two DWriteStrikethrough objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DWriteStrikethrough left, DWriteStrikethrough right)
Parameters
Type | Name | Description |
---|---|---|
DWriteStrikethrough | left | The left DWriteStrikethrough to compare. |
DWriteStrikethrough | right | The right DWriteStrikethrough to compare. |
Returns
Type | Description |
---|---|
bool |