SVGBuilderExtensions.Rect
SVGBuilderExtensions.Rect method
Sets the ‘x’, ‘y’, ‘width’, and ‘height’ attributes for an SVG element to define a rectangle.
public static TBuilder Rect<TBuilder>(this TBuilder builder, double x, double y, double width,
double height, LengthType type = LengthType.Px)
where TBuilder : ISVGElementBuilder, IRectAttributeSetter
| Parameter | Description |
|---|---|
| TBuilder | The type of the SVG element builder. |
| builder | The builder instance. |
| x | The x-coordinate of the rectangle. |
| y | The y-coordinate of the rectangle. |
| width | The width of the rectangle. |
| height | The height of the rectangle. |
| type | The type of length measurement for all dimensions (default is pixels). |
Return Value
The builder instance for chaining.
See Also
- enum LengthType
- interface ISVGElementBuilder
- interface IRectAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG