Class RadSvgImage
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
public class RadSvgImage : MarshalByRefObject, ISerializable, ICloneable, IDisposable
Constructors
RadSvgImage(SerializationInfo, StreamingContext)
This constructor is called during the deserialization process. https://docs.microsoft.com/en-us/dotnet/api/system.runtime.serialization.iserializable?view=netframework-2.0
Declaration
protected RadSvgImage(SerializationInfo info, StreamingContext context)
Parameters
System.
|
System.
|
Properties
AllowCache
Declaration
public static bool AllowCache { get; set; }
Property Value
System.
|
Document
Height
Gets or sets the default height of the SVG image.
Note that if you set negative value or null, the default height of the Svg
Declaration
public int Height { get; set; }
Property Value
System.
|
Size
Gets or sets the default size of the SVG image.
If this property is not modified it takes the value from the Svg
Declaration
public Size Size { get; set; }
Property Value
System.
|
Width
Gets or sets the default width of the SVG image.
Note that if you set negative value or null, the default width of the Svg
Declaration
public int Width { get; set; }
Property Value
System.
|
Methods
ClearCache()
Clears all cached raster images.
Declaration
public virtual void ClearCache()
Clone()
Declaration
public object Clone()
Returns
System.
|
Implements
Deserialize(String)
Declaration
public static RadSvgImage Deserialize(string encodedImage)
Parameters
System.
|
Returns
Dispose()
Declaration
public void Dispose()
Implements
FromByteArray(Byte[])
Creates a Rad
Declaration
public static RadSvgImage FromByteArray(byte[] bytes)
Parameters
System. A byte array that contains the data for this Rad |
Returns
Rad The Rad |
FromFile(String)
Creates a Rad
Declaration
public static RadSvgImage FromFile(string filename)
Parameters
System. A string that contains the name of the file from which to create the Rad |
Returns
Rad The Rad |
FromStream(Stream)
Creates a Rad
Declaration
public static RadSvgImage FromStream(Stream stream)
Parameters
System. A System. |
Returns
Rad The Rad |
FromXml(String)
Creates a Rad
Declaration
public static RadSvgImage FromXml(string xml)
Parameters
System.
|
Returns
GetRasterImage(Boolean)
Returns a raster System.
Declaration
public virtual Bitmap GetRasterImage(bool cache = true)
Parameters
System. Determines whether to cache the raster image. Default value is true. |
Returns
System. The raster image. |
GetRasterImage(Size, Boolean)
Returns a raster System.
Declaration
public virtual Bitmap GetRasterImage(Size size, bool cache = true)
Parameters
System. The size of the SVG document. |
System. Determines whether to cache the raster image. Default value is true. |
Returns
System. The raster image. |
GetRasterImage(Int32, Int32, Boolean)
Returns a raster System.
Declaration
public virtual Bitmap GetRasterImage(int width, int height, bool cache = true)
Parameters
System. The width of the raster image. |
System. The height of the raster image. |
System. Determines whether to cache the raster image. Default value is true. |
Returns
System. The raster image. |
Serialize(RadSvgImage)
Declaration
public static string Serialize(RadSvgImage svgImage)
Parameters
Rad
|
Returns
System.
|
ShouldSerializeDocument()
Declaration
public bool ShouldSerializeDocument()
Returns
System.
|
ToString()
Declaration
public override string ToString()
Returns
System.
|
Overrides
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
System.
|
System.
|