Search
ImageAlign Enumeration
See Also
 





Specifies the position and alignment of a picture in a node, or that of the background image.

Namespace: MindFusion.Drawing
Assembly: Enum.js

 Syntax

JavaScript  Copy Code

// enum
ImageAlign = {}

 Members

  Member name Description

Center

The image is centered in the node or diagram.

Fit

The image is resized to fit the size of the object or the component's client area.

Stretch

The image is stretched to fill the object or the component's client area.

Tile

The image is tiled to cover the node or the diagram.

TopLeft

The image is aligned to the top left corner of the node or the diagram.

BottomLeft

The image is aligned to the bottom left corner of the node or the diagram.

TopRight

The image is aligned to the top right corner of the node or the diagram.

BottomRight

The image is aligned to the bottom right corner of the node or the diagram.

TopCenter

The image is centered horizontally and aligned to the top side.

BottomCenter

The image is centered horizontally and aligned to the bottom side.

MiddleLeft

The image is centered vertically and aligned to the left-hand side.

MiddleRight

The image is centered vertically and aligned to the right-hand side.

FitLeft

The image is resized to fit the size of the object and aligned to left side.

FitTop

The image is resized to fit the size of the object and aligned to top side.

FitRight

The image is resized to fit the size of the object and aligned to right side.

FitBottom

The image is resized to fit the size of the object and aligned to bottom side.

 See Also