In This Article

MarkupLabelCssData Class

Provides a store for CSS data.

public class MarkupLabelCssData
Inheritance:
object object

Constructors

MarkupLabelCssData()

Initializes an instance of the class.

public MarkupLabelCssData()

Properties

BackgroundColor

The background Color.

public Color BackgroundColor { get; set; }

Property Value

Color

Color

The foreground Color.

public Color Color { get; set; }

Property Value

Color

FontFamily

The name of the font family.

public string? FontFamily { get; set; }

Property Value

string

FontSize

The font size.

public float FontSize { get; set; }

Property Value

float

FontStyle

A MarkupLabelFontStyle indicating the font style.

public MarkupLabelFontStyle FontStyle { get; set; }

Property Value

MarkupLabelFontStyle

FontWeight

A MarkupLabelFontWeight indicating the font weight.

public MarkupLabelFontWeight FontWeight { get; set; }

Property Value

MarkupLabelFontWeight

TextDecoration

A MarkupLabelTextDecoration indicating the text decoration.

public MarkupLabelTextDecoration TextDecoration { get; set; }

Property Value

MarkupLabelTextDecoration

Methods

Parse(MarkupLabelCssData, string)

Parses CSS data into a new MarkupLabelCssData object.

public static MarkupLabelCssData Parse(MarkupLabelCssData cssData, string css)
Parameter Type Description
cssData MarkupLabelCssData

A template MarkupLabelCssData.

css string

The css string of data.

Returns

MarkupLabelCssData:

The MarkupLabelCssData that was created.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods