MarkupLabelBodyElement Class
Represents a MarkupLabelElement for a body element.
public class MarkupLabelBodyElement : MarkupLabelElement, IDisposable, ILogicalTreeNode
- Inheritance:
- object MarshalByRefObject MarshalByRefDisposableObject LogicalTreeNodeBase MarkupLabelElement object
- Implements:
- IDisposable ILogicalTreeNode
Constructors
MarkupLabelBodyElement(MarkupLabel)
Represents a MarkupLabelElement for a body element.
public MarkupLabelBodyElement(MarkupLabel markupLabel)
| Parameter | Type | Description |
|---|---|---|
| markupLabel | MarkupLabel | The MarkupLabel that owns the element. |
Properties
DpiScaleFactor
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.
MarkupLabel
The MarkupLabel that owns the element.
Methods
GetBackColor(UIElementDrawState)
Returns 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
GetFont(string?, float, MarkupLabelFontWeight, MarkupLabelFontStyle, MarkupLabelTextDecoration, UIElementDrawState)
Returns 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
GetForeColor(UIElementDrawState)
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
Inherited Members
- MarkupLabelElement.CreateChildren()
- MarkupLabelElement.CreateUIElement(IUIElement)
- MarkupLabelElement.GetDefaultCssData()
- MarkupLabelElement.GetFont()
- MarkupLabelElement.ToString()
- MarkupLabelElement.Children
- MarkupLabelElement.ClassName
- MarkupLabelElement.CssData
- MarkupLabelElement.ElementName
- MarkupLabelElement.Id
- MarkupLabelElement.Parent
- MarkupLabelElement.Style
- MarkupLabelElement.VerticalAlignment
- LogicalTreeNodeBase.OnParentChanged()
- MarshalByRefDisposableObject.Dispose()
- MarshalByRefDisposableObject.Dispose(bool)
- MarshalByRefDisposableObject.VerifyNotDisposed()
- MarshalByRefDisposableObject.IsDisposed
- MarshalByRefDisposableObject.Disposed
- MarshalByRefObject.GetLifetimeService()
- MarshalByRefObject.InitializeLifetimeService()
- MarshalByRefObject.MemberwiseClone(bool)
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()
Extension Methods
- ILogicalTreeNodeExtensions.FindCommonLogicalAncestor(ILogicalTreeNode, ILogicalTreeNode)
- ILogicalTreeNodeExtensions.FindLogicalAncestorOfType<T>(ILogicalTreeNode, bool)
- ILogicalTreeNodeExtensions.FindLogicalDescendantOfType<T>(ILogicalTreeNode, bool)
- ILogicalTreeNodeExtensions.GetLogicalAncestors(ILogicalTreeNode)
- ILogicalTreeNodeExtensions.GetLogicalChildren(ILogicalTreeNode)
- ILogicalTreeNodeExtensions.GetLogicalDescendants(ILogicalTreeNode)
- ILogicalTreeNodeExtensions.GetLogicalParent(ILogicalTreeNode)
- ILogicalTreeNodeExtensions.GetLogicalParent<T>(ILogicalTreeNode)
- ILogicalTreeNodeExtensions.GetLogicalSiblings(ILogicalTreeNode)
- ILogicalTreeNodeExtensions.GetSelfAndLogicalAncestors(ILogicalTreeNode)
- ILogicalTreeNodeExtensions.GetSelfAndLogicalDescendants(ILogicalTreeNode)
- ILogicalTreeNodeExtensions.IsLogicalAncestorOf(ILogicalTreeNode, ILogicalTreeNode)
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)