System.Nullable<WhiteSpace> WhiteSpace { get; set; }

robot_2Generated
code_blocksInput

Description

The WhiteSpace property in the BaseStyles class represents the white-space CSS property. This property is used to control how whitespace inside an element is handled. It can be set to various values such as normal, nowrap, pre, pre-line, and pre-wrap, each affecting the rendering of whitespace and line breaks differently.

Usage

To use the WhiteSpace property, you can set it to one of the values defined in the Sandbox.UI.WhiteSpace enumeration. This allows you to control the whitespace handling behavior of a UI element in your application.

Example

BaseStyles styles = new BaseStyles();
styles.WhiteSpace = Sandbox.UI.WhiteSpace.PreWrap; // Sets the white-space property to pre-wrap