New to Telerik UI for WPFStart a free 30-day trial

Class TextUnderlineUILayer.

Definition

Constructors

C#
public TextUnderlineUILayer()

Properties

Gets the name.

C#
public override string Name { get; }
Property Value:

The name.

Overrides: UILayer.Name

Methods

Arranges the line part UI element.

C#
protected override void ArrangeLinePartUIElement(FrameworkElement uiElement, Span span, UIUpdateContext updateContext)
Parameters:uiElementFrameworkElement

The UI element.

spanSpan

The span.

updateContextUIUpdateContext

The update context.

Overrides: LineBasedUILayer<UnderlineTag>.ArrangeLinePartUIElement(FrameworkElement, Span, UIUpdateContext)

Determines whether this instance can recycle the specified element.

C#
protected override bool CanRecycle(object element)
Parameters:elementobject

The element.

Returns:

bool

true if this instance can recycle the specified element; otherwise, false.

Overrides: PooledUILayer.CanRecycle(object)

Gets the line part UI element.

C#
protected override FrameworkElement GetLinePartUIElement(UnderlineTag tag, Span span, UIUpdateContext updateContext)
Parameters:tagUnderlineTag

The tag.

spanSpan

The span.

updateContextUIUpdateContext

The update context.

Returns:

FrameworkElement

System.Windows.FrameworkElement.

Overrides: LineBasedUILayer<UnderlineTag>.GetLinePartUIElement(UnderlineTag, Span, UIUpdateContext)

Resets the pooled element properties.

C#
protected override void ResetPooledElementProperties(object element)
Parameters:elementobject

The element.

Exceptions:

InvalidOperationException

Underlines cannot be recycled.

Overrides: PooledUILayer.ResetPooledElementProperties(object)