Class SVGObject
SVG object
Implements
Inherited Members
Namespace: FastReport.SVG
Assembly: FastReport.dll
Syntax
public class SVGObject : PictureObjectBase, IDisposable, IFRSerializable, ICloneable
Constructors
SVGObject()
Initializes a new instance of the SVGObject class with default settings.
Declaration
public SVGObject()
Properties
Grayscale
Gets or sets a value indicating that the image should be displayed in grayscale mode.
Declaration
public override bool Grayscale { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Overrides
ImageHeight
Declaration
protected override float ImageHeight { get; }
Property Value
Type | Description |
---|---|
System.Single |
Overrides
ImageWidth
Declaration
protected override float ImageWidth { get; }
Property Value
Type | Description |
---|---|
System.Single |
Overrides
SvgDocument
Gets or sets svg document
Declaration
[Browsable(false)]
public SvgDocument SvgDocument { get; }
Property Value
Type | Description |
---|---|
Svg.SvgDocument |
SVGGrayscale
Gets grayscale svg document
Declaration
[Browsable(false)]
public SvgDocument SVGGrayscale { get; }
Property Value
Type | Description |
---|---|
Svg.SvgDocument |
SVGString
Returns SVG string
Declaration
public string SVGString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ViewBox
Gets or sets ViewBox value
Declaration
[Browsable(false)]
public SvgViewBox ViewBox { get; set; }
Property Value
Type | Description |
---|---|
Svg.SvgViewBox |
Methods
Assign(Base)
Copies the contents of another, similar object.
Declaration
public override void Assign(Base source)
Parameters
Type | Name | Description |
---|---|---|
Base | source | Source object to copy the contents from. |
Overrides
Remarks
Call Assign to copy the properties from another object of the same type. The standard form of a call to Assign is
destination.Assign(source);
which tells the destination object to copy the contents of the source object to itself. In this method, all child objects are ignored. If you want to copy child objects, use the AssignAll method.
See Also
Clone()
Returns clone of this object
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object |
Deserialize(FRReader)
Declaration
public override void Deserialize(FRReader reader)
Parameters
Type | Name | Description |
---|---|---|
FRReader | reader |
Overrides
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
DrawImage(FRPaintEventArgs)
Declaration
public override void DrawImage(FRPaintEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
FRPaintEventArgs | e |
Overrides
DrawImageInternal2(IGraphics, PointF, PointF, PointF)
Declaration
protected override void DrawImageInternal2(IGraphics graphics, PointF upperLeft, PointF upperRight, PointF lowerLeft)
Parameters
Type | Name | Description |
---|---|---|
FastReport.IGraphics | graphics | |
System.Drawing.PointF | upperLeft | |
System.Drawing.PointF | upperRight | |
System.Drawing.PointF | lowerLeft |
Overrides
GetData()
Gets the data from a datasource that the object is connected to.
Declaration
public override void GetData()
Overrides
Remarks
This method is called by the report engine before processing the object.
Do not call it directly. You may override it if you are developing a new FastReport component. In this method you should get the data from a datasource that the object is connected to.
GetDataAsync(CancellationToken)
Declaration
public override async Task GetDataAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
GetImage()
Declaration
public Image GetImage()
Returns
Type | Description |
---|---|
System.Drawing.Image |
LoadImage()
Loads image
Declaration
public override void LoadImage()
Overrides
LoadImageAsync(CancellationToken)
Declaration
public override async Task LoadImageAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
Overrides
ResetImageIndex()
Declaration
protected override void ResetImageIndex()
Overrides
Serialize(FRWriter)
Declaration
public override void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer |
Overrides
SetSVG(SvgDocument)
Sets svg object by SvgDocument
Declaration
public void SetSVG(SvgDocument svg)
Parameters
Type | Name | Description |
---|---|---|
Svg.SvgDocument | svg | SVG document |
SetSVGByContent(String)
Sets svg object from svg string
Declaration
public void SetSVGByContent(string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | content | SVG string |
SetSVGByPath(String)
Sets svg object from specified path
Declaration
public void SetSVGByPath(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | path to SVG file |