Class SvgRectangle
- Namespace
- Svg
- Assembly
- Svg.dll
Represents an SVG rectangle that could also have rounded edges.
[SvgElement("rect")]
public class SvgRectangle : SvgPathBasedElement, ISvgTransformable, ICloneable, ISvgNode, ISvgStylable, ISvgBoundable, ISvgClipable
- Inheritance
-
SvgRectangle
- Implements
- Inherited Members
- Extension Methods
Properties
CornerRadiusX
Gets or sets the X-radius of the rounded edges of this rectangle.
public SvgUnit CornerRadiusX { get; set; }
Property Value
CornerRadiusY
Gets or sets the Y-radius of the rounded edges of this rectangle.
public SvgUnit CornerRadiusY { get; set; }
Property Value
Height
Gets or sets the height of the rectangle.
public SvgUnit Height { get; set; }
Property Value
Location
Gets an SvgPoint representing the top left point of the rectangle.
public SvgPoint Location { get; }
Property Value
Width
Gets or sets the width of the rectangle.
public SvgUnit Width { get; set; }
Property Value
X
Gets or sets the position where the left point of the rectangle should start.
public SvgUnit X { get; set; }
Property Value
Y
Gets or sets the position where the top point of the rectangle should start.
public SvgUnit Y { get; set; }
Property Value
Methods
DeepCopy()
public override SvgElement DeepCopy()
Returns
DeepCopy<T>()
public override SvgElement DeepCopy<T>() where T : SvgElement, new()
Returns
Type Parameters
T
Path(ISvgRenderer)
Gets the GraphicsPath for this element.
public override GraphicsPath Path(ISvgRenderer renderer)
Parameters
renderer
ISvgRenderer
Returns
Render(ISvgRenderer)
Renders the SvgElement and contents to the specified Graphics object.
protected override void Render(ISvgRenderer renderer)
Parameters
renderer
ISvgRenderer