Search
ShapeNode.Image Property
See Also
 





Gets or sets the image that is displayed in this shape node.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public Image Image { get; set; }

Visual Basic  Copy Code

Public Property Image As Image

 Property Value

An instance of the System.Drawing.Image class. The default value is null (Nothing in Visual Basic).

 Remarks

This 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