ShapeExtensions
Wisej.Web.Markup.ShapeExtensions
Last updated
Was this helpful?
Wisej.Web.Markup.ShapeExtensions
Last updated
Was this helpful?
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the Shape class.
public class ShapeExtensions
Sets the BorderStyle property of the specified Shape.
TShape
shape
The shape for which to set the BorderStyle property.
borderStyle
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);
Sets the BorderStyleBottom property of the specified Shape.
TShape
shape
The shape for which to set the BorderStyleBottom property.
borderStyle
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);
Sets the BorderStyleLeft property of the specified Shape.
TShape
shape
The shape for which to set the BorderStyleLeft property.
borderStyle
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);
Sets the BorderStyleRight property of the specified Shape.
TShape
shape
The shape for which to set the BorderStyleRight property.
borderStyle
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);
Sets the BorderStyleTop property of the specified Shape.
TShape
shape
The shape for which to set the BorderStyleTop property.
borderStyle
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);
Sets the Rotation property of the specified Shape.
TShape
shape
The shape for which to set the Rotation property.
rotation
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);
The type of the shape, must inherit from .
The style to set for the shape.
The type of the shape, must inherit from .
The style to set for the bottom border of the shape.
The type of the shape, must inherit from .
The style to set for the left border of the shape.
The type of the shape, must inherit from .
The style to set for the right border of the shape.
The type of the shape, must inherit from .
The style to set for the top border of the shape.
The type of the shape, must inherit from .