In This Article

MarkupLabelBodyElement Class

Represents a MarkupLabelElement for a body element.

public class MarkupLabelBodyElement : MarkupLabelElement, IDisposable, ILogicalTreeNode
Inheritance:
object MarshalByRefObject DisposableObject LogicalTreeNodeBase MarkupLabelElement object
Implements:
IDisposable ILogicalTreeNode

Constructors

MarkupLabelBodyElement(MarkupLabel)

Initializes a new instance of the MarkupLabelBodyElement class.

public MarkupLabelBodyElement(MarkupLabel markupLabel)
Parameter Type Description
markupLabel MarkupLabel

The MarkupLabel that owns the element.

Properties

DpiScaleFactor

Gets the DPI scale factor to be applied when rendering the element, where Width is applied to the x-axis, and Height is applied to the y-axis.

protected override SizeF DpiScaleFactor { get; }

Property Value

SizeF

MarkupLabel

Gets the MarkupLabel that owns the element.

public override MarkupLabel MarkupLabel { get; }

Property Value

MarkupLabel:

The MarkupLabel that owns the element.

Methods

GetBackColor(UIElementDrawState)

Gets the background Color to use for drawing the element.

public override Color GetBackColor(UIElementDrawState drawState)
Parameter Type Description
drawState UIElementDrawState

A UIElementDrawState indicating the draw state.

Returns

Color:

The background Color to use for drawing the element.

GetFont(string, float, MarkupLabelFontWeight, MarkupLabelFontStyle, MarkupLabelTextDecoration, UIElementDrawState)

Gets the Font to use for drawing text in the element.

public override Font GetFont(string fontFamily, float fontSize, MarkupLabelFontWeight fontWeight, MarkupLabelFontStyle fontStyle, MarkupLabelTextDecoration textDecoration, UIElementDrawState drawState)
Parameter Type Description
fontFamily string

The font family.

fontSize float

The font size.

fontWeight MarkupLabelFontWeight

A MarkupLabelFontWeight indicating the font weight.

fontStyle MarkupLabelFontStyle

A MarkupLabelFontStyle indicating the font style.

textDecoration MarkupLabelTextDecoration

A MarkupLabelTextDecoration indicating the text decoration.

drawState UIElementDrawState

A UIElementDrawState indicating the draw state.

Returns

Font:

The Font to use for drawing text in the element.

GetForeColor(UIElementDrawState)

Gets the foreground Color to use for drawing the element.

public override Color GetForeColor(UIElementDrawState drawState)
Parameter Type Description
drawState UIElementDrawState

A UIElementDrawState indicating the draw state.

Returns

Color:

The foreground Color to use for drawing the element.

Inherited Members