TextTrimming Class

Describes how text is trimmed when it overflows.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public abstract class TextTrimming
Inheritance
Object    TextTrimming
Derived

Properties

CharacterEllipsis Text is trimmed at a character boundary. An ellipsis (...) is drawn in place of remaining text.
LeadingCharacterEllipsis Text is trimmed at a character boundary starting from the beginning. An ellipsis (...) is drawn in place of remaining text.
None Text is not trimmed.
PrefixCharacterEllipsis Text is trimmed after a given prefix length. An ellipsis (...) is drawn in between prefix and suffix and represents remaining text.
WordEllipsis Text is trimmed at a word boundary. An ellipsis (...) is drawn in place of remaining text.

Methods

CreateCollapsingProperties(TextCollapsingCreateInfo) Creates properties that will be used for collapsing lines of text.
Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Parse(String) Parses a text trimming string. Names must match static properties defined in this class.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also