Trimming Enum
List values that specify how the characters in a string that do not completely fit into a layout shape are trimmed.
Namespace: DevExpress.Utils
Assembly: DevExpress.Utils.v18.1.dll
Declaration
[TypeConverter(typeof(EnumTypeConverter))]
[ResourceFinder(typeof(ResFinder), "PropertyNamesRes")]
public enum Trimming
Members
Name | Description |
---|---|
Default
|
Trimming is determined by a control’s current settings. The default value is automatically set for a control if an end-user doesn’t specify a value. |
None
|
Specifies no trimming. |
Character
|
Specifies that the text is trimmed to the nearest character. |
Word
|
Specifies that text is trimmed to the nearest word. |
EllipsisCharacter
|
Specifies that the text is trimmed to the nearest character, and an ellipsis is inserted at the end of a trimmed line. |
EllipsisWord
|
Specifies that text is trimmed to the nearest word, and an ellipsis is inserted at the end of a trimmed line. |
EllipsisPath
|
The center is removed from trimmed lines and replaced by an ellipsis. The algorithm keeps as much of the last slash-delimited segment of the line as possible. |
Related API Members
The following properties accept/return Trimming values:
Remarks
These enumeration values are used to set the TextOptions.Trimming property.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Trimming enum.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.