ShapeExtensions
Wisej.Web.Markup.ShapeExtensions
Namespace: Wisej.Web.Markup
Assembly: Wisej.Framework (4.0.0.0)
Adds fluent markup extension methods to the Shape class.
public class ShapeExtensions
Methods
BorderStyle<TShape>(shape, borderStyle)

Sets the BorderStyle property of the specified 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.
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.
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.
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.
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.
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);
Last updated
Was this helpful?