New to Telerik UI for WPF? Start a free 30-day trial

Line

Class

Represents a line.

Definition

Namespace:Telerik.Windows.Controls.Spreadsheet.Dialogs

Assembly:Telerik.Windows.Controls.Spreadsheet.dll

Syntax:

C#
public class Line

Inheritance: objectLine

Constructors

Initializes a new instance of the Line class.

C#
public Line(DoubleCollection strokeDashArray, double thickness, CellBorderStyle borderStyle)
Parameters:strokeDashArrayDoubleCollection

The stroke dash array.

thicknessdouble

The thickness.

borderStyleCellBorderStyle

The border style.

Properties

BorderStyle

CellBorderStyle

Gets the border style.

C#
public CellBorderStyle BorderStyle { get; }
Property Value:

The border style.

LineVisibility

Visibility

Gets the line visibility.

C#
public Visibility LineVisibility { get; }
Property Value:

The line visibility.

StrokeDashArray

DoubleCollection

Gets the stroke dash array.

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

The stroke dash array.

Gets the text block visibility.

C#
public Visibility TextBlockVisibility { get; }
Property Value:

The text block visibility.

Gets the thickness of the line.

C#
public double Thickness { get; }
Property Value:

The thickness of the line.

Gets the x-coordinate of the Line start point.

C#
public double X1 { get; }
Property Value:

The x-coordinate for the start point of the line.

Gets the x-coordinate of the Line end point.

C#
public double X2 { get; }
Property Value:

The x-coordinate for the end point of the line.

Gets the y-coordinate of the Line start point.

C#
public double Y1 { get; }
Property Value:

The y-coordinate for the start point of the line.

Gets the y-coordinate of the Line end point.

C#
public double Y2 { get; }
Property Value:

The y-coordinate for the end point of the line.