ShapeExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.1.0.0)
Adds fluent markup extension methods to the Shape class.
- C#
- VB.NET
public class ShapeExtensions
Public Class ShapeExtensions
Methods
BorderStyle<TShape>(shape, borderStyle)
Sets the BorderStyle property of the specified Shape.
| Parameter | Type | Description |
|---|---|---|
| TShape | The type of the shape, must inherit from Shape. | |
| shape | TShape | The shape for which to set the BorderStyle property. |
| borderStyle | Border | The Border style to set for the shape. |
Returns: TShape. The modified shape with the updated BorderStyle property.
This method allows you to specify the overall border style of the shape.
myShape.BorderStyle(Shape.Border.Solid);
BorderStyleBottom<TShape>(shape, borderStyle)
Sets the BorderStyleBottom property of the specified Shape.
| Parameter | Type | Description |
|---|---|---|
| TShape | The type of the shape, must inherit from Shape. | |
| shape | TShape | The shape for which to set the BorderStyleBottom property. |
| borderStyle | Border | The Border style to set for the bottom border of the shape. |
Returns: TShape. The modified shape with the updated BorderStyleBottom property.
This method allows you to specify the border style for the bottom edge of the shape.
myShape.BorderStyleBottom(Shape.Border.Solid);
BorderStyleLeft<TShape>(shape, borderStyle)
Sets the BorderStyleLeft property of the specified Shape.
| Parameter | Type | Description |
|---|---|---|
| TShape | The type of the shape, must inherit from Shape. | |
| shape | TShape | The shape for which to set the BorderStyleLeft property. |
| borderStyle | Border | The Border style to set for the left border of the shape. |
Returns: TShape. The modified shape with the updated BorderStyleLeft property.
This method allows you to specify the border style for the left edge of the shape.
myShape.BorderStyleLeft(Shape.Border.Dotted);
BorderStyleRight<TShape>(shape, borderStyle)
Sets the BorderStyleRight property of the specified Shape.
| Parameter | Type | Description |
|---|---|---|
| TShape | The type of the shape, must inherit from Shape. | |
| shape | TShape | The shape for which to set the BorderStyleRight property. |
| borderStyle | Border | The Border style to set for the right border of the shape. |
Returns: TShape. The modified shape with the updated BorderStyleRight property.
This method allows you to specify the border style for the right edge of the shape.
myShape.BorderStyleRight(Shape.Border.None);
BorderStyleTop<TShape>(shape, borderStyle)
Sets the BorderStyleTop property of the specified Shape.
| Parameter | Type | Description |
|---|---|---|
| TShape | The type of the shape, must inherit from Shape. | |
| shape | TShape | The shape for which to set the BorderStyleTop property. |
| borderStyle | Border | The Border style to set for the top border of the shape. |
Returns: TShape. The modified shape with the updated BorderStyleTop property.
This method allows you to specify the border style for the top edge of the shape.
myShape.BorderStyleTop(Shape.Border.Dashed);
Rotation<TShape>(shape, rotation)
Sets the Rotation property of the specified Shape.
| Parameter | Type | Description |
|---|---|---|
| TShape | The type of the shape, must inherit from Shape. | |
| shape | TShape | The shape for which to set the Rotation property. |
| rotation | Int32 | The rotation angle in degrees to set for the shape. |
Returns: TShape. The modified shape with the updated Rotation property.
This method allows you to specify the rotation angle of the shape.
myShape.Rotation(90);