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
Field | Description |
---|---|
StringTrimmingNone | Specifies that no trimming is done. |
StringTrimmingCharacter | Specifies that the string is broken at the boundary of the last character that is inside the layout rectangle. |
StringTrimmingWord | Specifies that the string is broken at the boundary of the last word that is inside the layout rectangle. |
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 | 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 | Specifies 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.