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.
Color
Gets or sets the foreground Color.
FontFamily
Gets or sets the name of the font family.
FontSize
Gets or sets 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
.