Gets or sets the position of the images displayed in instances of this shape.
Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming
C# 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.
The 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.
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# Copy Code |
---|
Shape myShape = new Shape( |
Visual Basic Copy Code |
---|
Dim myShape As New Shape( _ |