LineExtensions

Wisej.Web.Markup.LineExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.0.0.0)

Adds fluent markup extension methods to the Line class.

public class LineExtensions

Methods

LineColor<TLine>(line, color)

Sets the LineColor property of the specified Line.

Parameter
Type
Description

TLine

The type of the line, must inherit from Line.

line

The line for which to set the LineColor property.

color

The 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);

LineSize<TLine>(line, size)

Sets the LineSize property of the specified Line.

Parameter
Type
Description

TLine

The type of the line, must inherit from Line.

line

The line for which to set the LineSize property.

size

The 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);

LineStyle<TLine>(line, style)

Sets the LineStyle property of the specified Line.

Parameter
Type
Description

TLine

The type of the line, must inherit from Line.

line

The line for which to set the LineStyle property.

style

The 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);

Orientation<TLine>(line, orientation)

Sets the Orientation property of the specified Line.

Parameter
Type
Description

TLine

The type of the line, must inherit from Line.

line

The line for which to set the Orientation property.

orientation

The 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);

Last updated

Was this helpful?