Class
LineDecoration

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:

cs-api-definition
public class LineDecoration : IUnderlineUIDecorationProvider, IDecorationUIProvider

Inheritance: objectLineDecoration

Implements: IDecorationUIProviderIUnderlineUIDecorationProvider

Constructors

LineDecoration()

Declaration

cs-api-definition
public LineDecoration()

LineDecoration(DoubleCollection)

Declaration

cs-api-definition
public LineDecoration(DoubleCollection strokeDashArray)

Parameters

strokeDashArray

DoubleCollection

Properties

StrokeDashArray

Gets or sets the stroke dash array for the LineDecoration.

Declaration

cs-api-definition
public DoubleCollection StrokeDashArray { get; }

Property Value

DoubleCollection

Methods

CreateDecorationUI(RectangleF, Color)

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

Declaration

cs-api-definition
public UIElement CreateDecorationUI(RectangleF currentRectangle, Color color)

Parameters

currentRectangle

RectangleF

The rectangle that defines the area for the decoration.

color

Color

The color to be used for the decoration.

Returns

UIElement

A user interface element representing the decoration.

Implements IDecorationUIProvider.CreateDecorationUI(RectangleF, Color)

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

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

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

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

Overrides object.GetHashCode()

ToString()

Returns a string representation of the current LineDecoration instance.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents the current LineDecoration.

Overrides object.ToString()