Skip to main content
Version: 4.1

ShapeExtensions

Namespace: Wisej.Web.Markup

Assembly: Wisej.Framework (4.1.0.0)

Adds fluent markup extension methods to the Shape class.

public class ShapeExtensions

Methods

Static member BorderStyle<TShape>(shape, borderStyle)

Sets the BorderStyle property of the specified Shape.

ParameterTypeDescription
TShapeThe type of the shape, must inherit from Shape.
shapeTShapeThe shape for which to set the BorderStyle property.
borderStyleBorderThe 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);

Static member BorderStyleBottom<TShape>(shape, borderStyle)

Sets the BorderStyleBottom property of the specified Shape.

ParameterTypeDescription
TShapeThe type of the shape, must inherit from Shape.
shapeTShapeThe shape for which to set the BorderStyleBottom property.
borderStyleBorderThe 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);

Static member BorderStyleLeft<TShape>(shape, borderStyle)

Sets the BorderStyleLeft property of the specified Shape.

ParameterTypeDescription
TShapeThe type of the shape, must inherit from Shape.
shapeTShapeThe shape for which to set the BorderStyleLeft property.
borderStyleBorderThe 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);

Static member BorderStyleRight<TShape>(shape, borderStyle)

Sets the BorderStyleRight property of the specified Shape.

ParameterTypeDescription
TShapeThe type of the shape, must inherit from Shape.
shapeTShapeThe shape for which to set the BorderStyleRight property.
borderStyleBorderThe 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);

Static member BorderStyleTop<TShape>(shape, borderStyle)

Sets the BorderStyleTop property of the specified Shape.

ParameterTypeDescription
TShapeThe type of the shape, must inherit from Shape.
shapeTShapeThe shape for which to set the BorderStyleTop property.
borderStyleBorderThe 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);

Static member Rotation<TShape>(shape, rotation)

Sets the Rotation property of the specified Shape.

ParameterTypeDescription
TShapeThe type of the shape, must inherit from Shape.
shapeTShapeThe shape for which to set the Rotation property.
rotationInt32The 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);