System.Nullable<PanelTransform> Transform { get; set; }

robot_2Generated
code_blocksInput

Description

The Transform property in the Sandbox.UI.BaseStyles class represents the transform CSS property. This property allows you to apply 2D or 3D transformations to an element, such as rotating, scaling, or translating it. The value is of type System.Nullable<Sandbox.UI.PanelTransform>, meaning it can hold a PanelTransform value or be null if no transformation is applied.

Usage

To use the Transform property, you can set it to a PanelTransform object that defines the desired transformation. If you want to remove any transformation, you can set it to null.

Example

// Example of setting a transform property
BaseStyles styles = new BaseStyles();
styles.Transform = new PanelTransform
{
    Scale = new Vector2(1.5f, 1.5f),
    Rotation = 45.0f
};

// Example of clearing the transform
styles.Transform = null;