Class SvgRectangle
Represents an SVG rectangle that could also have rounded edges.
Inherited Members
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Svg
Assembly: Svg.dll
Syntax
[SvgElement("rect")]
public class SvgRectangle : SvgPathBasedElement, ISvgTransformable, ICloneable, ISvgNode, ISvgStylable, ISvgBoundable, ISvgClipable
Properties
| Improve this Doc View SourceCornerRadiusX
Gets or sets the X-radius of the rounded edges of this rectangle.
Declaration
public SvgUnit CornerRadiusX { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgUnit |
CornerRadiusY
Gets or sets the Y-radius of the rounded edges of this rectangle.
Declaration
public SvgUnit CornerRadiusY { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgUnit |
Height
Gets or sets the height of the rectangle.
Declaration
public SvgUnit Height { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgUnit |
Location
Gets an SvgPoint representing the top left point of the rectangle.
Declaration
public SvgPoint Location { get; }
Property Value
| Type | Description |
|---|---|
| SvgPoint |
Width
Gets or sets the width of the rectangle.
Declaration
public SvgUnit Width { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgUnit |
X
Gets or sets the position where the left point of the rectangle should start.
Declaration
public SvgUnit X { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgUnit |
Y
Gets or sets the position where the top point of the rectangle should start.
Declaration
public SvgUnit Y { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgUnit |
Methods
| Improve this Doc View SourceDeepCopy()
Declaration
public override SvgElement DeepCopy()
Returns
| Type | Description |
|---|---|
| SvgElement |
Overrides
| Improve this Doc View SourceDeepCopy<T>()
Declaration
public override SvgElement DeepCopy<T>()
where T : SvgElement, new()
Returns
| Type | Description |
|---|---|
| SvgElement |
Type Parameters
| Name | Description |
|---|---|
| T |
Overrides
| Improve this Doc View SourcePath(ISvgRenderer)
Gets the
Declaration
public override GraphicsPath Path(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer |
Returns
| Type | Description |
|---|---|
| GraphicsPath |
Overrides
| Improve this Doc View SourceRender(ISvgRenderer)
Renders the SvgElement and contents to the specified
Declaration
protected override void Render(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer |