Struct DWriteTrimming
The DWRITE_TRIMMING structure specifies the trimming option for text overflowing the layout box.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.DWrite
Assembly: JeremyAnsel.DirectX.DWrite.dll
Syntax
public struct DWriteTrimming : IEquatable<DWriteTrimming>
Constructors
| Edit this page View SourceDWriteTrimming(DWriteTrimmingGranularity, uint, uint)
Initializes a new instance of the DWriteTrimming struct.
Declaration
public DWriteTrimming(DWriteTrimmingGranularity granularity, uint delimiter, uint delimiterCount)
Parameters
Type | Name | Description |
---|---|---|
DWriteTrimmingGranularity | granularity | Text granularity of which trimming applies. |
uint | delimiter | Character code used as the delimiter signaling the beginning of the portion of text to be preserved. |
uint | delimiterCount | How many occurrences of the delimiter to step back. |
Properties
| Edit this page View SourceDelimiter
Gets or sets the character code used as the delimiter signaling the beginning of the portion of text to be preserved, most useful for path ellipsis, where the delimiter would be a slash.
Declaration
public uint Delimiter { get; set; }
Property Value
Type | Description |
---|---|
uint |
DelimiterCount
Gets or sets how many occurrences of the delimiter to step back.
Declaration
public uint DelimiterCount { get; set; }
Property Value
Type | Description |
---|---|
uint |
Granularity
Gets or sets the text granularity of which trimming applies.
Declaration
public DWriteTrimmingGranularity Granularity { get; set; }
Property Value
Type | Description |
---|---|
DWriteTrimmingGranularity |
Methods
| Edit this page View SourceEquals(DWriteTrimming)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(DWriteTrimming other)
Parameters
Type | Name | Description |
---|---|---|
DWriteTrimming | 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 ==(DWriteTrimming, DWriteTrimming)
Compares two DWriteTrimming objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(DWriteTrimming left, DWriteTrimming right)
Parameters
Type | Name | Description |
---|---|---|
DWriteTrimming | left | The left DWriteTrimming to compare. |
DWriteTrimming | right | The right DWriteTrimming to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(DWriteTrimming, DWriteTrimming)
Compares two DWriteTrimming objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(DWriteTrimming left, DWriteTrimming right)
Parameters
Type | Name | Description |
---|---|---|
DWriteTrimming | left | The left DWriteTrimming to compare. |
DWriteTrimming | right | The right DWriteTrimming to compare. |
Returns
Type | Description |
---|---|
bool |