Gets or sets the position of the images displayed in instances of this shape.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
SyntaxC#
Copy Code
|
|---|
public RectangleF ImageRectangle { get; set; } |
Visual Basic
Copy Code
|
|---|
Public Property ImageRectangle As RectangleF |
A .NET RectangleF object specifying the location of an image relatively to the shape node that displays the image.
RemarksThe coordinates of the image location are specified in percent, relatively to 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( |
Visual Basic
Copy Code
|
|---|
Dim myShape As New Shape( _ |
See Also