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

Class BaseBoolFieldExtensions

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

Provides extension methods for BaseBoolField.

public static class BaseBoolFieldExtensions

Inheritance​

object ← BaseBoolFieldExtensions

Methods​

SetLabel<T>(T, string)​

Sets label.

public static T SetLabel<T>(this T element, string value) where T : BaseBoolField

Parameters​

element T

The element to modify.

value string

The label text to set.

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 : BaseBoolField

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.

SetToggleOnLabelClick<T>(T, bool)​

Sets toggleOnLabelClick.

public static T SetToggleOnLabelClick<T>(this T element, bool value) where T : BaseBoolField

Parameters​

element T

The element to modify.

value bool

When true, clicking the label toggles the value.

Returns​

T

The element, for chaining.

Type Parameters​

T

The element type.