Class SvgDocument
Inheritance
System.Object
SvgDocument
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()
Assembly: TelerikCommon.dll
Syntax
public class SvgDocument : SvgFragment, ISvgElement, ISvgTransformable, ICloneable, ISvgNode, ISvgViewPort, ISvgBoundable, ITypeDescriptorContext, IServiceProvider
Constructors
Fields
Declaration
public static readonly int PointsPerInch
Field Value
Properties
Declaration
public Uri BaseUri { get; set; }
Property Value
Declaration
public string ExternalCSSHref { get; set; }
Property Value
Declaration
protected virtual SvgElementIdManager IdManager { get; }
Property Value
Declaration
public int Ppi { get; set; }
Property Value
Declaration
public static bool SkipGdiPlusCapabilityCheck { get; set; }
Property Value
Methods
Declaration
public virtual Bitmap Draw()
Returns
Declaration
public virtual void Draw(Bitmap bitmap)
Parameters
|
System.Drawing.Bitmap
bitmap
|
Declaration
public void Draw(Graphics graphics)
Parameters
|
System.Drawing.Graphics
graphics
|
Declaration
public void Draw(Graphics graphics, SizeF? size)
Parameters
|
System.Drawing.Graphics
graphics
|
|
System.Nullable<System.Drawing.SizeF>
size
|
Declaration
public virtual Bitmap Draw(int rasterWidth, int rasterHeight)
Parameters
|
System.Int32
rasterWidth
|
|
System.Int32
rasterHeight
|
Returns
Declaration
public void Draw(ISvgRenderer renderer)
Parameters
Declaration
public static void EnsureSystemIsGdiPlusCapable()
Declaration
public static T FromSvg<T>(string svg)
where T : SvgDocument, new()
Parameters
Returns
Type Parameters
Declaration
public virtual SvgElement GetElementById(string id)
Parameters
Returns
Declaration
public virtual TSvgElement GetElementById<TSvgElement>(string id)
where TSvgElement : SvgElement
Parameters
Returns
Type Parameters
Declaration
public static SvgDocument Open(string path)
Parameters
Returns
Declaration
public static SvgDocument Open(XmlDocument document)
Parameters
|
System.Xml.XmlDocument
document
|
Returns
Declaration
public static T Open<T>(Stream stream)
where T : SvgDocument, new()
Parameters
Returns
Type Parameters
Declaration
public static T Open<T>(Stream stream, Dictionary<string, string> entities)
where T : SvgDocument, new()
Parameters
|
System.IO.Stream
stream
|
|
System.Collections.Generic.Dictionary<System.String, System.String>
entities
|
Returns
Type Parameters
Declaration
public static T Open<T>(string path)
where T : SvgDocument, new()
Parameters
Returns
Type Parameters
Declaration
public static T Open<T>(string path, Dictionary<string, string> entities)
where T : SvgDocument, new()
Parameters
|
System.String
path
|
|
System.Collections.Generic.Dictionary<System.String, System.String>
entities
|
Returns
Type Parameters
Declaration
public static Bitmap OpenAsBitmap(string path)
Parameters
Returns
Declaration
public static Bitmap OpenAsBitmap(XmlDocument document)
Parameters
|
System.Xml.XmlDocument
document
|
Returns
Declaration
public void OverwriteIdManager(SvgElementIdManager manager)
Parameters
Declaration
public virtual void RasterizeDimensions(ref SizeF size, int rasterWidth, int rasterHeight)
Parameters
|
System.Drawing.SizeF
size
|
|
System.Int32
rasterWidth
|
|
System.Int32
rasterHeight
|
Declaration
public static bool SystemIsGdiPlusCapable()
Returns
Declaration
public void Write(Stream stream, bool useBom = true)
Parameters
|
System.IO.Stream
stream
|
|
System.Boolean
useBom
|
Declaration
public void Write(string path, bool useBom = true)
Parameters
|
System.String
path
|
|
System.Boolean
useBom
|
Declaration
public override void Write(XmlTextWriter writer)
Parameters
|
System.Xml.XmlTextWriter
writer
|
Overrides
Declaration
public string WriteToString()
Returns
Events
Declaration
public event SvgDocumentDrawExceptionEventHandler DocumentDrawException
Event Type
Explicit Interface Implementations
Declaration
object IServiceProvider.GetService(Type serviceType)
Parameters
Returns
Implements
System.IServiceProvider.GetService(System.Type)
Extension Methods