Class SvgVisualElement
The class that all SVG elements should derive from when they are to be rendered.
Inheritance
Inherited Members
Namespace: Svg
Assembly: Svg.dll
Syntax
public abstract class SvgVisualElement : SvgElement, ISvgTransformable, ICloneable, ISvgNode, ISvgStylable, ISvgBoundable, ISvgClipable
Constructors
| Improve this Doc View SourceSvgVisualElement()
Initializes a new instance of the SvgVisualElement class.
Declaration
public SvgVisualElement()
Properties
| Improve this Doc View SourceBounds
Gets the bounds of the element.
Declaration
public abstract RectangleF Bounds { get; }
Property Value
| Type | Description |
|---|---|
| RectangleF | The bounds. |
Clip
Gets the associated SvgClipPath if one has been specified.
Declaration
public virtual string Clip { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
ClipPath
Gets the associated SvgClipPath if one has been specified.
Declaration
public virtual Uri ClipPath { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri |
ClipRule
Gets or sets the algorithm which is to be used to determine the clipping region.
Declaration
public SvgClipRule ClipRule { get; set; }
Property Value
| Type | Description |
|---|---|
| SvgClipRule |
Displayable
Declaration
protected virtual bool Displayable { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
EnableBackground
Gets or sets the fill SvgPaintServer of this element.
Declaration
public virtual string EnableBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Filter
Gets the associated SvgFilter if one has been specified.
Declaration
public virtual Uri Filter { get; set; }
Property Value
| Type | Description |
|---|---|
| Uri |
Renderable
Declaration
protected virtual bool Renderable { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
RequiresSmoothRendering
Gets or sets a value to determine if anti-aliasing should occur when the element is being rendered.
Declaration
protected virtual bool RequiresSmoothRendering { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Visible
Declaration
public virtual bool Visible { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
Methods
| Improve this Doc View SourcePath(ISvgRenderer)
Gets the
Declaration
public abstract GraphicsPath Path(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer |
Returns
| Type | Description |
|---|---|
| GraphicsPath |
Render(ISvgRenderer)
Renders the SvgElement and contents to the specified
Declaration
protected override void Render(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer | The ISvgRenderer object to render to. |
Overrides
| Improve this Doc View SourceRenderFill(ISvgRenderer)
Renders the fill of the SvgVisualElement to the specified ISvgRenderer
Declaration
protected virtual void RenderFill(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer | The ISvgRenderer object to render to. |
RenderFillAndStroke(ISvgRenderer)
Declaration
protected virtual void RenderFillAndStroke(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer |
RenderStroke(ISvgRenderer)
Renders the stroke of the SvgVisualElement to the specified ISvgRenderer
Declaration
protected virtual bool RenderStroke(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer | The ISvgRenderer object to render to. |
Returns
| Type | Description |
|---|---|
| Boolean |
ResetClip(ISvgRenderer)
Resets the clipping region of the specified ISvgRenderer back to where it was before the SetClip(ISvgRenderer) method was called.
Declaration
protected virtual void ResetClip(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer | The ISvgRenderer to have its clipping region reset. |
SetClip(ISvgRenderer)
Sets the clipping region of the specified ISvgRenderer.
Declaration
protected virtual void SetClip(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer | The ISvgRenderer to have its clipping region set. |
Explicit Interface Implementations
| Improve this Doc View SourceISvgBoundable.Location
Declaration
PointF ISvgBoundable.Location { get; }
Returns
| Type | Description |
|---|---|
| PointF |
ISvgBoundable.Size
Declaration
SizeF ISvgBoundable.Size { get; }
Returns
| Type | Description |
|---|---|
| SizeF |
ISvgClipable.ResetClip(ISvgRenderer)
Resets the clipping region of the specified ISvgRenderer back to where it was before the SetClip(ISvgRenderer) method was called.
Declaration
void ISvgClipable.ResetClip(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer | The ISvgRenderer to have its clipping region reset. |
ISvgClipable.SetClip(ISvgRenderer)
Sets the clipping region of the specified ISvgRenderer.
Declaration
void ISvgClipable.SetClip(ISvgRenderer renderer)
Parameters
| Type | Name | Description |
|---|---|---|
| ISvgRenderer | renderer | The ISvgRenderer to have its clipping region set. |