Gets or set an SvgContent instance representing the SVG drawing rendered in this node.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# Copy Code |
---|
public SvgContent Content { get; set; } |
Visual Basic Copy Code |
---|
Public Property Content As SvgContent |
An instance of the MindFusion.Svg.SvgContent class representing the SVG drawing.
The SvgContent class is defined in the MindFusion.Svg.dll file. You must add a reference to this assembly to the target project.
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 |
MindFusion.Diagramming Developer's Guide | © 2024 MindFusion |