ASP.NET Pack Programmer's Guide
SvgNode.Content Property
See Also
 





Gets or set an SvgContent instance representing the SVG drawing rendered in this node.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public SvgContent Content { get; set; }

Visual Basic  Copy Code

Public Property Content As SvgContent

 Property Value

An instance of the MindFusion.Svg.SvgContent class representing the SVG drawing.

 Remarks

The SvgContent class is defined in the MindFusion.Svg.dll file. You must add a reference to this assembly to the target project.

 Example

The following example illustrates how to create an SvgContent object from a local SVG file and associate it with an existing SvgNode object. The SvgNode object is referenced by the node variable.

C#  Copy Code
SvgContent content = new SvgContent();
content.Parse(@"c:\image.svg");
node.Content = content;
Visual Basic  Copy Code
Dim content As New SvgContent()
content.Parse("c:\image.svg")
node.Content = content

 See Also

SvgNode Members
SvgNode Class
MindFusion.Diagramming Namespace