skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class SvgElement

Inheritance
System.Object
SvgElement
SvgComponentTransferFunction
SvgDistantLight
SvgFilter
SvgFilterPrimitive
SvgMergeNode
SvgPointLight
SvgSpotLight
NonSvgElement
SvgAnchor
SvgClipPath
SvgDefinitionList
SvgDescription
SvgDocumentMetadata
SvgFont
SvgFontFace
SvgFontFaceSrc
SvgFontFaceUri
SvgFragment
SvgGradientStop
SvgKern
SvgMask
SvgPaintServer
SvgScript
SvgTitle
SvgUnknownElement
SvgVisualElement
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.Svg
Assembly: TelerikCommon.dll

Syntax

public abstract class SvgElement : ISvgElement, ISvgTransformable, ICloneable, ISvgNode

Constructors

SvgElement()

Declaration
public SvgElement()

Fields

AutoPublishEvents

Declaration
public bool AutoPublishEvents
Field Value
System.Boolean

PrivateFonts

Declaration
public static PrivateFontCollection PrivateFonts
Field Value
System.Drawing.Text.PrivateFontCollection

Properties

Attributes

Declaration
protected virtual SvgAttributeCollection Attributes { get; }
Property Value
SvgAttributeCollection

BaselineShift

Declaration
public virtual string BaselineShift { get; set; }
Property Value
System.String

Children

Declaration
public virtual SvgElementCollection Children { get; }
Property Value
SvgElementCollection

Color

Declaration
public virtual SvgPaintServer Color { get; set; }
Property Value
SvgPaintServer

ColorInterpolation

Declaration
public SvgColourInterpolation ColorInterpolation { get; set; }
Property Value
SvgColourInterpolation

ColorInterpolationFilters

Declaration
public SvgColourInterpolation ColorInterpolationFilters { get; set; }
Property Value
SvgColourInterpolation

Content

Declaration
public virtual string Content { get; set; }
Property Value
System.String

Implements
ISvgNode.Content

CustomAttributes

Declaration
public SvgCustomAttributeCollection CustomAttributes { get; }
Property Value
SvgCustomAttributeCollection

Display

Declaration
public virtual string Display { get; set; }
Property Value
System.String

ElementName

Declaration
protected string ElementName { get; }
Property Value
System.String

Events

Declaration
protected virtual EventHandlerList Events { get; }
Property Value
System.ComponentModel.EventHandlerList

Fill

Declaration
public virtual SvgPaintServer Fill { get; set; }
Property Value
SvgPaintServer

FillOpacity

Declaration
public virtual float FillOpacity { get; set; }
Property Value
System.Single

FillRule

Declaration
public virtual SvgFillRule FillRule { get; set; }
Property Value
SvgFillRule

Font

Declaration
public virtual string Font { get; set; }
Property Value
System.String

FontFamily

Declaration
public virtual string FontFamily { get; set; }
Property Value
System.String

FontSize

Declaration
public virtual SvgUnit FontSize { get; set; }
Property Value
SvgUnit

FontStretch

Declaration
public virtual SvgFontStretch FontStretch { get; set; }
Property Value
SvgFontStretch

FontStyle

Declaration
public virtual SvgFontStyle FontStyle { get; set; }
Property Value
SvgFontStyle

FontVariant

Declaration
public virtual SvgFontVariant FontVariant { get; set; }
Property Value
SvgFontVariant

FontWeight

Declaration
public virtual SvgFontWeight FontWeight { get; set; }
Property Value
SvgFontWeight

ID

Declaration
public string ID { get; set; }
Property Value
System.String

IsPathDirty

Declaration
protected virtual bool IsPathDirty { get; set; }
Property Value
System.Boolean

Nodes

Declaration
public IList<ISvgNode> Nodes { get; }
Property Value
System.Collections.Generic.IList<ISvgNode>

Opacity

Declaration
public virtual float Opacity { get; set; }
Property Value
System.Single

OwnerDocument

Declaration
public virtual SvgDocument OwnerDocument { get; }
Property Value
SvgDocument

Parent

Declaration
public virtual SvgElement Parent { get; }
Property Value
SvgElement

Parents

Declaration
public IEnumerable<SvgElement> Parents { get; }
Property Value
System.Collections.Generic.IEnumerable<SvgElement>

ParentsAndSelf

Declaration
public IEnumerable<SvgElement> ParentsAndSelf { get; }
Property Value
System.Collections.Generic.IEnumerable<SvgElement>

ShapeRendering

Declaration
public virtual SvgShapeRendering ShapeRendering { get; set; }
Property Value
SvgShapeRendering

SpaceHandling

Declaration
[SvgAttribute("space", "http://www.w3.org/XML/1998/namespace")]
public virtual XmlSpaceHandling SpaceHandling { get; set; }
Property Value
XmlSpaceHandling

Stroke

Declaration
public virtual SvgPaintServer Stroke { get; set; }
Property Value
SvgPaintServer

StrokeDashArray

Declaration
public virtual SvgUnitCollection StrokeDashArray { get; set; }
Property Value
SvgUnitCollection

StrokeDashOffset

Declaration
public virtual SvgUnit StrokeDashOffset { get; set; }
Property Value
SvgUnit

StrokeLineCap

Declaration
public virtual SvgStrokeLineCap StrokeLineCap { get; set; }
Property Value
SvgStrokeLineCap

StrokeLineJoin

Declaration
public virtual SvgStrokeLineJoin StrokeLineJoin { get; set; }
Property Value
SvgStrokeLineJoin

StrokeMiterLimit

Declaration
public virtual float StrokeMiterLimit { get; set; }
Property Value
System.Single

StrokeOpacity

Declaration
public virtual float StrokeOpacity { get; set; }
Property Value
System.Single

StrokeWidth

Declaration
public virtual SvgUnit StrokeWidth { get; set; }
Property Value
SvgUnit

TextAnchor

Declaration
public virtual SvgTextAnchor TextAnchor { get; set; }
Property Value
SvgTextAnchor

TextDecoration

Declaration
public virtual SvgTextDecoration TextDecoration { get; set; }
Property Value
SvgTextDecoration

TextTransformation

Declaration
public virtual SvgTextTransformation TextTransformation { get; set; }
Property Value
SvgTextTransformation

Transforms

Declaration
public SvgTransformCollection Transforms { get; set; }
Property Value
SvgTransformCollection

Implements
ISvgTransformable.Transforms

Visibility

Declaration
public virtual string Visibility { get; set; }
Property Value
System.String

Writing

Declaration
protected bool Writing { get; set; }
Property Value
System.Boolean

Methods

AddElement(SvgElement, Int32)

Declaration
protected virtual void AddElement(SvgElement child, int index)
Parameters
SvgElement child

System.Int32 index

AddPaths(SvgElement, GraphicsPath)

Declaration
protected void AddPaths(SvgElement elem, GraphicsPath path)
Parameters
SvgElement elem

System.Drawing.Drawing2D.GraphicsPath path

AddStyle(String, String, Int32)

Declaration
public void AddStyle(string name, string value, int specificity)
Parameters
System.String name

System.String value

System.Int32 specificity

Clone()

Declaration
public virtual object Clone()
Returns
System.Object

Implements
System.ICloneable.Clone()

ContainsAttribute(String)

Declaration
public bool ContainsAttribute(string name)
Parameters
System.String name

Returns
System.Boolean

CreateMouseEventAction(Action<Object, MouseArg>)

Declaration
protected Action<float, float, int, int, bool, bool, bool, string> CreateMouseEventAction(Action<object, MouseArg> eventRaiser)
Parameters
System.Action<System.Object, MouseArg> eventRaiser

Returns
System.Action<System.Single, System.Single, System.Int32, System.Int32, System.Boolean, System.Boolean, System.Boolean, System.String>

DeepCopy()

Declaration
public abstract SvgElement DeepCopy()
Returns
SvgElement

DeepCopy<T>()

Declaration
public virtual SvgElement DeepCopy<T>()
    where T : SvgElement, new()
Returns
SvgElement

Type Parameters
T

Descendants()

Declaration
public IEnumerable<SvgElement> Descendants()
Returns
System.Collections.Generic.IEnumerable<SvgElement>

FixOpacityValue(Single)

Declaration
protected static float FixOpacityValue(float value)
Parameters
System.Single value

Returns
System.Single

FlushStyles(Boolean)

Declaration
public void FlushStyles(bool children = false)
Parameters
System.Boolean children

GetAttribute<TAttributeType>(String, Boolean, TAttributeType)

Declaration
protected TAttributeType GetAttribute<TAttributeType>(string attributeName, bool inherited, TAttributeType defaultValue = null)
Parameters
System.String attributeName

System.Boolean inherited

TAttributeType defaultValue

Returns
TAttributeType

Type Parameters
TAttributeType

GetPaths(SvgElement, ISvgRenderer)

Declaration
protected GraphicsPath GetPaths(SvgElement elem, ISvgRenderer renderer)
Parameters
SvgElement elem

ISvgRenderer renderer

Returns
System.Drawing.Drawing2D.GraphicsPath

HasChildren()

Declaration
public virtual bool HasChildren()
Returns
System.Boolean

InitialiseFromXML(XmlTextReader, SvgDocument)

Declaration
public virtual void InitialiseFromXML(XmlTextReader reader, SvgDocument document)
Parameters
System.Xml.XmlTextReader reader

SvgDocument document

InvalidateChildPaths()

Declaration
public void InvalidateChildPaths()

OnAttributeChanged(AttributeEventArgs)

Declaration
protected void OnAttributeChanged(AttributeEventArgs args)
Parameters
AttributeEventArgs args

OnContentChanged(ContentEventArgs)

Declaration
protected void OnContentChanged(ContentEventArgs args)
Parameters
ContentEventArgs args

OnMouseScroll(Int32, Boolean, Boolean, Boolean, String)

Declaration
protected void OnMouseScroll(int scroll, bool ctrlKey, bool shiftKey, bool altKey, string sessionID)
Parameters
System.Int32 scroll

System.Boolean ctrlKey

System.Boolean shiftKey

System.Boolean altKey

System.String sessionID

PopTransforms(ISvgRenderer)

Declaration
protected virtual void PopTransforms(ISvgRenderer renderer)
Parameters
ISvgRenderer renderer

PushTransforms(ISvgRenderer)

Declaration
protected virtual bool PushTransforms(ISvgRenderer renderer)
Parameters
ISvgRenderer renderer

Returns
System.Boolean

RaiseMouseClick(Object, MouseArg)

Declaration
protected void RaiseMouseClick(object sender, MouseArg e)
Parameters
System.Object sender

MouseArg e

RaiseMouseDown(Object, MouseArg)

Declaration
protected void RaiseMouseDown(object sender, MouseArg e)
Parameters
System.Object sender

MouseArg e

RaiseMouseMove(Object, MouseArg)

Declaration
protected void RaiseMouseMove(object sender, MouseArg e)
Parameters
System.Object sender

MouseArg e

RaiseMouseOut(Object, MouseArg)

Declaration
protected void RaiseMouseOut(object sender, MouseArg args)
Parameters
System.Object sender

MouseArg args

RaiseMouseOver(Object, MouseArg)

Declaration
protected void RaiseMouseOver(object sender, MouseArg args)
Parameters
System.Object sender

MouseArg args

RaiseMouseScroll(Object, MouseScrollArg)

Declaration
protected void RaiseMouseScroll(object sender, MouseScrollArg e)
Parameters
System.Object sender

MouseScrollArg e

RaiseMouseUp(Object, MouseArg)

Declaration
protected void RaiseMouseUp(object sender, MouseArg e)
Parameters
System.Object sender

MouseArg e

RegisterEvents(ISvgEventCaller)

Declaration
public virtual void RegisterEvents(ISvgEventCaller caller)
Parameters
ISvgEventCaller caller

RemoveElement(SvgElement)

Declaration
protected virtual void RemoveElement(SvgElement child)
Parameters
SvgElement child

Render(ISvgRenderer)

Declaration
protected virtual void Render(ISvgRenderer renderer)
Parameters
ISvgRenderer renderer

RenderChildren(ISvgRenderer)

Declaration
protected virtual void RenderChildren(ISvgRenderer renderer)
Parameters
ISvgRenderer renderer

RenderElement(ISvgRenderer)

Declaration
public void RenderElement(ISvgRenderer renderer)
Parameters
ISvgRenderer renderer

SetAndForceUniqueID(String, Boolean, Action<SvgElement, String, String>)

Declaration
public void SetAndForceUniqueID(string value, bool autoForceUniqueID = true, Action<SvgElement, string, string> logElementOldIDNewID = null)
Parameters
System.String value

System.Boolean autoForceUniqueID

System.Action<SvgElement, System.String, System.String> logElementOldIDNewID

ShouldWriteElement()

Declaration
public virtual bool ShouldWriteElement()
Returns
System.Boolean

TransformedBounds(RectangleF)

Declaration
protected RectangleF TransformedBounds(RectangleF bounds)
Parameters
System.Drawing.RectangleF bounds

Returns
System.Drawing.RectangleF

TryGetAttribute(String, out String)

Declaration
public bool TryGetAttribute(string name, out string value)
Parameters
System.String name

System.String value

Returns
System.Boolean

UnregisterEvents(ISvgEventCaller)

Declaration
public virtual void UnregisterEvents(ISvgEventCaller caller)
Parameters
ISvgEventCaller caller

ValidateFontFamily(String, SvgDocument)

Declaration
public static object ValidateFontFamily(string fontFamilyList, SvgDocument doc)
Parameters
System.String fontFamilyList

SvgDocument doc

Returns
System.Object

Write(XmlTextWriter)

Declaration
public virtual void Write(XmlTextWriter writer)
Parameters
System.Xml.XmlTextWriter writer

WriteAttributes(XmlTextWriter)

Declaration
protected virtual void WriteAttributes(XmlTextWriter writer)
Parameters
System.Xml.XmlTextWriter writer

WriteChildren(XmlTextWriter)

Declaration
protected virtual void WriteChildren(XmlTextWriter writer)
Parameters
System.Xml.XmlTextWriter writer

WriteEndElement(XmlTextWriter)

Declaration
protected virtual void WriteEndElement(XmlTextWriter writer)
Parameters
System.Xml.XmlTextWriter writer

WriteStartElement(XmlTextWriter)

Declaration
protected virtual void WriteStartElement(XmlTextWriter writer)
Parameters
System.Xml.XmlTextWriter writer

Events

AttributeChanged

Declaration
public event EventHandler<AttributeEventArgs> AttributeChanged
Event Type
System.EventHandler<AttributeEventArgs>

ChildAdded

Declaration
public event EventHandler<ChildAddedEventArgs> ChildAdded
Event Type
System.EventHandler<ChildAddedEventArgs>

Click

Declaration
public event EventHandler<MouseArg> Click
Event Type
System.EventHandler<MouseArg>

ContentChanged

Declaration
public event EventHandler<ContentEventArgs> ContentChanged
Event Type
System.EventHandler<ContentEventArgs>

Load

Declaration
public event EventHandler Load
Event Type
System.EventHandler

MouseDown

Declaration
public event EventHandler<MouseArg> MouseDown
Event Type
System.EventHandler<MouseArg>

MouseMove

Declaration
public event EventHandler<MouseArg> MouseMove
Event Type
System.EventHandler<MouseArg>

MouseOut

Declaration
public event EventHandler<MouseArg> MouseOut
Event Type
System.EventHandler<MouseArg>

MouseOver

Declaration
public event EventHandler<MouseArg> MouseOver
Event Type
System.EventHandler<MouseArg>

MouseScroll

Declaration
public event EventHandler<MouseScrollArg> MouseScroll
Event Type
System.EventHandler<MouseScrollArg>

MouseUp

Declaration
public event EventHandler<MouseArg> MouseUp
Event Type
System.EventHandler<MouseArg>

Explicit Interface Implementations

ISvgNode.DeepCopy()

Declaration
ISvgNode ISvgNode.DeepCopy()
Returns
ISvgNode

Implements
ISvgNode.DeepCopy()

ISvgTransformable.PopTransforms(ISvgRenderer)

Declaration
void ISvgTransformable.PopTransforms(ISvgRenderer renderer)
Parameters
ISvgRenderer renderer

Implements
ISvgTransformable.PopTransforms(ISvgRenderer)

ISvgTransformable.PushTransforms(ISvgRenderer)

Declaration
void ISvgTransformable.PushTransforms(ISvgRenderer renderer)
Parameters
ISvgRenderer renderer

Implements
ISvgTransformable.PushTransforms(ISvgRenderer)

Extension Methods

SvgExtentions.GetXML(SvgElement)
SvgExtentions.HasNonEmptyCustomAttribute(SvgElement, String)
SvgExtentions.ApplyRecursive(SvgElement, Action<SvgElement>)
SvgExtentions.ApplyRecursiveDepthFirst(SvgElement, Action<SvgElement>)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.