Header menu logo Sigma.NET

CssLength Type

Represents CSS length units, either in pixels (PX) or percentage (Percent)

Union cases

Union case Description

PX int

Full Usage: PX int

Parameters:
    Item : int

Represents a length in pixels.

Item : int

Percent int

Full Usage: Percent int

Parameters:
    Item : int

Represents a length as a percentage of the containing element.

Item : int

Static members

Static member Description

CssLength.serialize v

Full Usage: CssLength.serialize v

Parameters:
    v : CssLength - The CssLength value to serialize.

Returns: string A string representing the CssLength value in pixels or percentage.

Serializes a CssLength value to its string representation.

v : CssLength

The CssLength value to serialize.

Returns: string

A string representing the CssLength value in pixels or percentage.

Type something to start searching.