EmfPlusStringTrimming

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum

public final class EmfPlusStringTrimming extends System.Enum

The StringTrimming enumeration defines how to trim characters from a string that is too large for the text layout rectangle.

Fields

FieldDescription
StringTrimmingNoneSpecifies that no trimming is done.
StringTrimmingCharacterSpecifies that the string is broken at the boundary of the last character that is inside the layout rectangle.
StringTrimmingWordSpecifies that the string is broken at the boundary of the last word that is inside the layout rectangle.
StringTrimmingEllipsisCharacterSpecifies that the string is broken at the boundary of the last character that is inside the layout rectangle, and an ellipsis (…) is inserted after the character.
StringTrimmingEllipsisWordSpecifies that the string is broken at the boundary of the last word that is inside the layout rectangle, and an ellipsis (…) is inserted after the word.
StringTrimmingEllipsisPathSpecifies that the center is removed from the string and replaced by an ellipsis.

StringTrimmingNone

public static final int StringTrimmingNone

Specifies that no trimming is done.

StringTrimmingCharacter

public static final int StringTrimmingCharacter

Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle. This is the default.

StringTrimmingWord

public static final int StringTrimmingWord

Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle.

StringTrimmingEllipsisCharacter

public static final int StringTrimmingEllipsisCharacter

Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle, and an ellipsis (…) is inserted after the character.

StringTrimmingEllipsisWord

public static final int StringTrimmingEllipsisWord

Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle, and an ellipsis (…) is inserted after the word.

StringTrimmingEllipsisPath

public static final int StringTrimmingEllipsisPath

Specifies that the center is removed from the string and replaced by an ellipsis. The algorithm keeps as much of the last portion of the string as possible.