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

Represents a line decoration provider in the Telerik UI framework.

Definition

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

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class LineDecoration : IUnderlineUIDecorationProvider, IDecorationUIProvider

Inheritance: objectLineDecoration

Implements: IDecorationUIProviderIUnderlineUIDecorationProvider

Constructors

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

Properties

StrokeDashArray

DoubleCollection

Gets or sets the stroke dash array for the LineDecoration.

C#
public DoubleCollection StrokeDashArray { get; }

Methods

Creates a decoration user interface based on the specified rectangle and color.

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

The rectangle that defines the area for the decoration.

colorColor

The color to be used for the decoration.

Returns:

UIElement

A user interface element representing the decoration.

Implements: IDecorationUIProvider.CreateDecorationUI(RectangleF, Color)

Determines whether the specified object is equal to the current instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current instance.

Returns:

bool

True if the specified object is equal to the current instance; otherwise, false.

Overrides: object.Equals(object)

Returns a hash code for the current instance of the LineDecoration.

C#
public override int GetHashCode()
Returns:

int

A 32-bit signed integer that is the hash code for the current instance.

Overrides: object.GetHashCode()

Returns a string representation of the current LineDecoration instance.

C#
public override string ToString()
Returns:

string

A string that represents the current LineDecoration.

Overrides: object.ToString()