Gets or sets the position of the images displayed in instances of this shape.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
SyntaxC#
Copy Code
|
|---|
public Rect ImageRectangle { get; set; } |
Visual Basic
Copy Code
|
|---|
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.
RemarksThe 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.
ExampleThe 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#
Copy Code
|
|---|
Shape myShape = new Shape( |
See Also