Gets or sets the position of the images displayed in instances of this shape.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C#
![]() |
---|
public Rect ImageRectangle { get; set; } |
Visual Basic
![]() |
---|
Public Property ImageRectangle As Rect |
A Microsoft.Maui.Graphics.Rect specifying the location of an image relatively to the shape node that displays the image.
The coordinates of the image location are specified as percentage of the rectangular bounds of shape nodes. The default value (0, 0, 100, 100) makes the image displayed in the whole area of that node.
The following code defines a shape, which displays an image in the lower-right quarter of shape nodes and lays out text in the other three quarters.
C#
![]() |
---|
Shape myShape = new Shape( |