Description
The TextTransform
property in the Sandbox.UI.BaseStyles
class represents the text-transform
CSS property. This property is used to control the capitalization of text within an element. It can be set to various values such as uppercase
, lowercase
, capitalize
, or none
, among others, to transform the text accordingly.
Usage
To use the TextTransform
property, you can assign it a value from the Sandbox.UI.TextTransform
enumeration. This property is nullable, meaning it can also be set to null
to remove any text transformation.
Example
BaseStyles styles = new BaseStyles();
styles.TextTransform = TextTransform.Uppercase; // Transforms text to uppercase
styles.TextTransform = null; // Removes text transformation