Table of Contents

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

SvgUnit

CornerRadiusY

Gets or sets the Y-radius of the rounded edges of this rectangle.

public SvgUnit CornerRadiusY { get; set; }

Property Value

SvgUnit

Height

Gets or sets the height of the rectangle.

public SvgUnit Height { get; set; }

Property Value

SvgUnit

Location

Gets an SvgPoint representing the top left point of the rectangle.

public SvgPoint Location { get; }

Property Value

SvgPoint

Width

Gets or sets the width of the rectangle.

public SvgUnit Width { get; set; }

Property Value

SvgUnit

X

Gets or sets the position where the left point of the rectangle should start.

public SvgUnit X { get; set; }

Property Value

SvgUnit

Y

Gets or sets the position where the top point of the rectangle should start.

public SvgUnit Y { get; set; }

Property Value

SvgUnit

Methods

DeepCopy()

public override SvgElement DeepCopy()

Returns

SvgElement

DeepCopy<T>()

public override SvgElement DeepCopy<T>() where T : SvgElement, new()

Returns

SvgElement

Type Parameters

T

Path(ISvgRenderer)

Gets the GraphicsPath for this element.

public override GraphicsPath Path(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

Returns

GraphicsPath

Render(ISvgRenderer)

Renders the SvgElement and contents to the specified Graphics object.

protected override void Render(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer