LineExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the Line class.
- C#
- VB.NET
public class LineExtensions
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 | TLine | The line for which to set the LineColor property. |
| color | 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 | TLine | The line for which to set the LineSize property. |
| size | Int32 | 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 | TLine | The line for which to set the LineStyle property. |
| style | LineStyle | 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 | TLine | The line for which to set the Orientation property. |
| orientation | 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);