Gets or sets a value indicating how the background image is positioned, relatively to the scrollable document area.
Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming
C# Copy Code |
---|
public ImageAlign BackgroundImageAlign { get; set; } |
Visual Basic Copy Code |
---|
Public Property BackgroundImageAlign As ImageAlign |
A member of the ImageAlign enumeration. The default is ImageAlign.TopLeft.
The background image can be aligned to a corner, stretched, centered, or tiled to cover the control's area.
To have a background image stretched along the drawing surface, use code like the following:
C# Copy Code |
---|
diagram.BackgroundImage = Image.FromFile("back.jpg"); |
Visual Basic Copy Code |
---|
diagram.BackgroundImage = Image.FromFile("back.jpg") |