Table of Contents

Struct Trimming

Namespace
SharpDX.DirectWrite
Assembly
SharpDX.Direct2D1.dll

Specifies the trimming option for text overflowing the layout box.

public struct Trimming
Inherited Members

Fields

Delimiter

A character code used as the delimiter that signals the beginning of the portion of text to be preserved. Text starting from the Nth occurence of the delimiter (where N equals delimiterCount) counting backwards from the end of the text block will be preserved. For example, given the text is a path like c:\A\B\C\D\file.txt and delimiter equal to '\' and delimiterCount equal to 1, the file.txt portion of the text would be preserved. Specifying a delimiterCount of 2 would preserve D\file.txt.

public int Delimiter

Field Value

int

DelimiterCount

The delimiter count, counting from the end of the text, to preserve text from.

public int DelimiterCount

Field Value

int

Granularity

A value that specifies the text granularity used to trim text overflowing the layout box.

public TrimmingGranularity Granularity

Field Value

TrimmingGranularity