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

Represents a thick line decoration that can be applied to text in the UI.

Definition

Namespace:Telerik.Windows.Documents.UI.TextDecorations.DecorationProviders

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class ThickLineDecoration : IUnderlineUIDecorationProvider, IDecorationUIProvider

Inheritance: objectThickLineDecoration

Implements: IDecorationUIProviderIUnderlineUIDecorationProvider

Constructors

C#
public ThickLineDecoration()
C#
public ThickLineDecoration(DoubleCollection strokeDashArray)
Parameters:strokeDashArrayDoubleCollection

Properties

StrokeDashArray

DoubleCollection

Gets or sets the stroke dash array for the ThickLineDecoration.

C#
public DoubleCollection StrokeDashArray { get; }
Property Value:

An array of Single values that specifies the lengths of alternating dashes and gaps for the stroke.

Methods

Creates the UI representation for a thick line decoration using the specified rectangle and color.

C#
public UIElement CreateDecorationUI(RectangleF currentRectangle, Color color)
Parameters:currentRectangleRectangleF

The rectangle defining the size and position of the thick line decoration.

colorColor

The color of the thick line decoration.

Returns:

UIElement

An object representing the UI for the thick line decoration.

Implements: IDecorationUIProvider.CreateDecorationUI(RectangleF, Color)

Returns a string representation of the ThickLineDecoration instance.

C#
public override string ToString()
Returns:

string

A string that represents the current ThickLineDecoration object.

Overrides: object.ToString()