In This Article

MarkupLabelLineBreakUIElement Class

Provides a MarkupLabelUIElement for line break.

public class MarkupLabelLineBreakUIElement : MarkupLabelUIElement, IInputElement, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable
Inheritance:
object MarshalByRefObject DisposableObject LogicalTreeNodeBase UIElement MarkupLabelUIElement object
Implements:
IInputElement IUIElement ILogicalTreeNode IDpiAwareElement IDisposable

Constructors

MarkupLabelLineBreakUIElement(MarkupLabelElement)

Initializes a new instance of the MarkupLabelLineBreakUIElement class.

public MarkupLabelLineBreakUIElement(MarkupLabelElement element)
Parameter Type Description
element MarkupLabelElement

The MarkupLabelElement that owns this element.

Properties

Descent

Gets the descent from the baseline that the element has.

public override int Descent { get; }

Property Value

int:

The descent from the baseline that the element has.

HardLineBreakBefore

Gets whether a hard line break should occur before the element.

public override bool HardLineBreakBefore { get; }

Property Value

bool:

true if a hard line break should occur before the element; otherwise, false.

Methods

MeasureOverride(Graphics, Size)

Measures the size in layout required for child elements and determines a size for the element itself.

protected override Size MeasureOverride(Graphics g, Size availableSize)
Parameter Type Description
g Graphics

The Graphics object to use for measurement.

availableSize Size

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns

Size:

The size that this element determines it needs during layout, based on its calculations of child element sizes.

Inherited Members

Extension Methods