Skip to main content

TextTrimming Class

Describes how text is trimmed when it overflows.

Definition

Namespace: Avalonia.Media
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public abstract class TextTrimming
View Source
InheritanceObject → TextTrimming
DerivedAvalonia.Media.TextLeadingPrefixTrimming
Avalonia.Media.TextTrailingTrimming

Constructors

TextTrimming()Initializes a new instance of the TextTrimming class

Properties

CharacterEllipsisText is trimmed at a character boundary. An ellipsis (...) is drawn in place of remaining text.
LeadingCharacterEllipsisText is trimmed at a character boundary starting from the beginning. An ellipsis (...) is drawn in place of remaining text.
NoneText is not trimmed.
PrefixCharacterEllipsisText is trimmed after a given prefix length. An ellipsis (...) is drawn in between prefix and suffix and represents remaining text.
WordEllipsisText 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)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates 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.
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Media Namespace