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