Skip to main content

Control Methods

An object defining methods for the Control class.

SetMLText(value)​

Sets the multilingual text for the control.

Parameters:​

value (required): Dictionary<string, string>
A dictionary containing language keys and corresponding text values.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


SetText(value)​

Sets the text representation of the control's value.

Parameters:​

value (required): object
The text to set.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


GetMLValues()​

Retrieves the multilingual values associated with the control.

Returns:​

Type: List<MLValues>
A list of multilingual values.

This is a sync method. Method runs synchronously.


GetGroup()​

Determines the control group based on its type.

Returns:​

Type: string
The name of the control group.

This is a sync method. Method runs synchronously.


SetCategories(value)​

Sets the categories for the control.

Parameters:​

value (required): object
The categories to set.

Returns:​

Type: void
Method does not return anything

This is a sync method. Method runs synchronously.


GetMLText()​

Determines the control group based on its type.

Returns:​

Type: Dictionary<string, string>
A dictionary containing language keys and corresponding text values.

This is a sync method. Method runs synchronously.


GetCategories()​

Retrieves the categories associated with the control.

Returns:​

Type: object
The categories if applicable.

This is a sync method. Method runs synchronously.


GetText()​

Retrieves the text representation of the control's value.

Returns:​

Type: object
The text representation.

This is a sync method. Method runs synchronously.


GetPropertyValue<T>(propertyName)​

Retrieves a property value from the control's JSON representation.

Parameters:​

propertyName (required): string
The name of the property to retrieve.

Generics:​

Type: T
A generic type parameter that allows the method's return type to be dynamically specified when called, adapting the result to that specific type.

Returns:​

Type: T
The value of the requested property, or the default value if not found.

This is a sync method. Method runs synchronously.