Gets or sets the image that is displayed in this shape node.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public ImageSource Image { get; set; } |
Visual Basic Copy Code |
---|
Public Property Image As ImageSource |
An instance of the System.Windows.Media.ImageSource class. The default value is null (Nothing in Visual Basic).
This property lets you display an image inside the node. The ImageRectangle attribute of the shape definition specifies a rectangular area inside the node in which the image is displayed. Use the ImageAlign property to specify how the image is aligned to that area. By default, the image is displayed in the center of the bounding rectangle of the node.
If there isn't any image assigned to this property, the shape node displays the Image specified in its Shape template.
WpfDiagram Programmer's Guide | © 2024 MindFusion |