Skip to main content
Version: 4.1

LineExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the Line class.

public class LineExtensions

Methods

Static member LineColor<TLine>(line, color)

Sets the LineColor property of the specified Line.

ParameterTypeDescription
TLineThe type of the line, must inherit from Line.
lineTLineThe line for which to set the LineColor property.
colorColorThe Color to set for the line.

Returns: TLine. The modified line with the updated LineColor property.

This method allows you to specify the color of the line.


myLine.LineColor(Color.Red);

Static member LineSize<TLine>(line, size)

Sets the LineSize property of the specified Line.

ParameterTypeDescription
TLineThe type of the line, must inherit from Line.
lineTLineThe line for which to set the LineSize property.
sizeInt32The size (thickness) of the line.

Returns: TLine. The modified line with the updated LineSize property.

This method allows you to specify the size (thickness) of the line.


myLine.LineSize(5);

Static member LineStyle<TLine>(line, style)

Sets the LineStyle property of the specified Line.

ParameterTypeDescription
TLineThe type of the line, must inherit from Line.
lineTLineThe line for which to set the LineStyle property.
styleLineStyleThe LineStyle to set for the line.

Returns: TLine. The modified line with the updated LineStyle property.

This method allows you to specify the style of the line, such as solid, dashed, etc.


myLine.LineStyle(LineStyle.Dashed);

Static member Orientation<TLine>(line, orientation)

Sets the Orientation property of the specified Line.

ParameterTypeDescription
TLineThe type of the line, must inherit from Line.
lineTLineThe line for which to set the Orientation property.
orientationOrientationThe Orientation to set for the line.

Returns: TLine. The modified line with the updated Orientation property.

This method allows you to specify the orientation of the line, such as horizontal or vertical.


myLine.Orientation(Orientation.Horizontal);