Class SvgElement
Inheritance
Inherited Members
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
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
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
FillOpacity
Declaration
public virtual float FillOpacity { get; set; }
Property Value
System.Single
|
FillRule
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
FontStretch
FontStyle
FontVariant
FontWeight
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
Parent
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
StrokeDashArray
Declaration
public virtual SvgUnitCollection StrokeDashArray { get; set; }
Property Value
SvgUnitCollection
|
StrokeDashOffset
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
TextAnchor
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
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
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()
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)
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)
Render(ISvgRenderer)
RenderChildren(ISvgRenderer)
Declaration
protected virtual void RenderChildren(ISvgRenderer renderer)
Parameters
ISvgRenderer
renderer
|
RenderElement(ISvgRenderer)
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
ContentChanged
Declaration
public event EventHandler<ContentEventArgs> ContentChanged
Event Type
System.EventHandler<ContentEventArgs>
|
Load
Declaration
public event EventHandler Load
Event Type
System.EventHandler
|
MouseDown
MouseMove
MouseOut
MouseOver
MouseScroll
Declaration
public event EventHandler<MouseScrollArg> MouseScroll
Event Type
System.EventHandler<MouseScrollArg>
|
MouseUp
Explicit Interface Implementations
ISvgNode.DeepCopy()
ISvgTransformable.PopTransforms(ISvgRenderer)
Declaration
void ISvgTransformable.PopTransforms(ISvgRenderer renderer)
Parameters
ISvgRenderer
renderer
|
Implements
ISvgTransformable.PushTransforms(ISvgRenderer)
Declaration
void ISvgTransformable.PushTransforms(ISvgRenderer renderer)
Parameters
ISvgRenderer
renderer
|