Gets or sets the image that is displayed in this shape node.
Namespace: MindFusion.Diagramming.Avalonia
Assembly: MindFusion.Diagramming.Avalonia
SyntaxC#
Copy Code
|
|---|
public IImage Image { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property Image As IImage |
An instance of the Avalonia.Media.IImage class. The default value is null (Nothing in Visual Basic).
RemarksThis 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.
See Also