Search
Diagram.BackgroundImageAlign Property
See Also
 





Gets or sets a value indicating how the background image is positioned, relatively to the scrollable document area.

Namespace: MindFusion.Diagramming
Assembly: MindFusion.Diagramming

 Syntax

C#  Copy Code

public ImageAlign BackgroundImageAlign { get; set; }

Visual Basic  Copy Code

Public Property BackgroundImageAlign As ImageAlign

 Property Value

A member of the ImageAlign enumeration. The default is ImageAlign.TopLeft.

 Remarks

The background image can be aligned to a corner, stretched, centered, or tiled to cover the control's area.

 Example

To have a background image stretched along the drawing surface, use code like the following:

C#  Copy Code

diagram.BackgroundImage = Image.FromFile("back.jpg");
diagram.BackgroundImageAlign = ImageAlign.Stretch;

Visual Basic  Copy Code

diagram.BackgroundImage = Image.FromFile("back.jpg")
Diagram.BackgroundImageAlign = ImageAlign.Stretch

 See Also