void FillDefaults()

robot_2Generated
code_blocksInput

Description

The FillDefaults method is a public instance method of the BaseStyles class in the Sandbox.UI namespace. This method is responsible for populating the style object with default CSS property values. It ensures that any properties that have not been explicitly set are initialized to their default values, providing a consistent baseline for style definitions.

Usage

Use the FillDefaults method when you need to ensure that all CSS properties in a BaseStyles object are initialized to their default values. This is particularly useful when creating new style objects or resetting styles to a known state.

Example

// Example of using FillDefaults method

// Create a new instance of BaseStyles
var styles = new BaseStyles();

// Fill the styles with default values
styles.FillDefaults();

// Now, styles contains default values for all CSS properties