Table of Contents

Class SvgVisualElement

Namespace
Svg
Assembly
Svg.dll

The class that all SVG elements should derive from when they are to be rendered.

public abstract class SvgVisualElement : SvgElement, ISvgTransformable, ICloneable, ISvgNode, ISvgStylable, ISvgBoundable, ISvgClipable
Inheritance
SvgVisualElement
Implements
Derived
Inherited Members
Extension Methods

Constructors

SvgVisualElement()

Initializes a new instance of the SvgVisualElement class.

public SvgVisualElement()

Properties

Bounds

Gets the bounds of the element.

public abstract RectangleF Bounds { get; }

Property Value

RectangleF

The bounds.

Clip

Gets the associated SvgClipPath if one has been specified.

public virtual string Clip { get; set; }

Property Value

string

ClipPath

Gets the associated SvgClipPath if one has been specified.

public virtual Uri ClipPath { get; set; }

Property Value

Uri

ClipRule

Gets or sets the algorithm which is to be used to determine the clipping region.

public SvgClipRule ClipRule { get; set; }

Property Value

SvgClipRule

Displayable

protected virtual bool Displayable { get; }

Property Value

bool

EnableBackground

Gets or sets the fill SvgPaintServer of this element.

public virtual string EnableBackground { get; set; }

Property Value

string

Filter

Gets the associated SvgFilter if one has been specified.

public virtual Uri Filter { get; set; }

Property Value

Uri

Renderable

protected virtual bool Renderable { get; }

Property Value

bool

RequiresSmoothRendering

Gets or sets a value to determine if anti-aliasing should occur when the element is being rendered.

protected virtual bool RequiresSmoothRendering { get; }

Property Value

bool

Visible

public virtual bool Visible { get; }

Property Value

bool

Methods

Path(ISvgRenderer)

Gets the GraphicsPath for this element.

public abstract 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

The ISvgRenderer object to render to.

RenderFill(ISvgRenderer)

Renders the fill of the SvgVisualElement to the specified ISvgRenderer

protected virtual void RenderFill(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

The ISvgRenderer object to render to.

RenderFillAndStroke(ISvgRenderer)

protected virtual void RenderFillAndStroke(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

RenderStroke(ISvgRenderer)

Renders the stroke of the SvgVisualElement to the specified ISvgRenderer

protected virtual bool RenderStroke(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

The ISvgRenderer object to render to.

Returns

bool

ResetClip(ISvgRenderer)

Resets the clipping region of the specified ISvgRenderer back to where it was before the SetClip(ISvgRenderer) method was called.

protected virtual void ResetClip(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

The ISvgRenderer to have its clipping region reset.

SetClip(ISvgRenderer)

Sets the clipping region of the specified ISvgRenderer.

protected virtual void SetClip(ISvgRenderer renderer)

Parameters

renderer ISvgRenderer

The ISvgRenderer to have its clipping region set.