In This Article

MarkupLabelCssData Class

Provides a store for CSS data.

public class MarkupLabelCssData
Inheritance:
object object

Constructors

MarkupLabelCssData()

Initializes a new instance of the MarkupLabelCssData class.

public MarkupLabelCssData()

Remarks

The default constructor initializes all fields to their default values.

Properties

BackgroundColor

Gets or sets the background Color.

public Color BackgroundColor { get; set; }

Property Value

Color:

The background Color.

Color

Gets or sets the foreground Color.

public Color Color { get; set; }

Property Value

Color:

The foreground Color.

FontFamily

Gets or sets the name of the font family.

public string FontFamily { get; set; }

Property Value

string:

The name of the font family.

FontSize

Gets or sets the font size.

public float FontSize { get; set; }

Property Value

float:

The font size.

FontStyle

Gets or sets a MarkupLabelFontStyle indicating the font style.

public MarkupLabelFontStyle FontStyle { get; set; }

Property Value

MarkupLabelFontStyle:

A MarkupLabelFontStyle indicating the font style.

FontWeight

Gets or sets a MarkupLabelFontWeight indicating the font weight.

public MarkupLabelFontWeight FontWeight { get; set; }

Property Value

MarkupLabelFontWeight:

A MarkupLabelFontWeight indicating the font weight.

TextDecoration

Gets or sets a MarkupLabelTextDecoration indicating the text decoration.

public MarkupLabelTextDecoration TextDecoration { get; set; }

Property Value

MarkupLabelTextDecoration:

A MarkupLabelTextDecoration indicating the text decoration.

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 a String that represents the current Object.

public override string ToString()

Returns

string:

A String that represents the current Object.

Inherited Members