Перейти к основному содержимому

Class TextElementExtensions

Namespace: Aspid.FastTools.UIElements
Assembly: Aspid.FastTools.dll

Provides extension methods for TextElement.

public static class TextElementExtensions

Inheritance​

object ← TextElementExtensions

Methods​

SetDisplayTooltipWhenElided<T>(T, bool)​

Sets displayTooltipWhenElided.

public static T SetDisplayTooltipWhenElided<T>(this T element, bool value) where T : TextElement

Parameters​

element T

The element to modify.

value bool

When true, a tooltip shows the full text when it is elided.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetEmojiFallbackSupport<T>(T, bool)​

Sets emojiFallbackSupport.

public static T SetEmojiFallbackSupport<T>(this T element, bool value) where T : TextElement

Parameters​

element T

The element to modify.

value bool

When true, the global emoji fallback list is searched first.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetEnableRichText<T>(T, bool)​

Sets enableRichText.

public static T SetEnableRichText<T>(this T element, bool value) where T : TextElement

Parameters​

element T

The element to modify.

value bool

When true, rich text tags are parsed.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetParseEscapeSequences<T>(T, bool)​

Sets parseEscapeSequences.

public static T SetParseEscapeSequences<T>(this T element, bool value) where T : TextElement

Parameters​

element T

The element to modify.

value bool

When true, escape sequences such as \n are parsed; otherwise, they are shown as raw text.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.

SetText<T>(T, string)​

Sets text.

public static T SetText<T>(this T element, string value) where T : TextElement

Parameters​

element T

The element to modify.

value string

The text to set.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.