PictureAlignment

[property icon] PictureAlignment

Specifies the picture alignment

Enumerated type, possible values are:

Default
TopLeft
TopCenter
TopRight
MiddleLeft
MiddleCenter
MiddleRight
BottomLeft
BottomCenter
BottomRight
Tile
Stretch
Fit

Applies to: Grid , GridCell

Introduced in KCML version 5.02


[property icon] PictureAlignment

Specifies the alignment of the background picture

Enumerated type, possible values are:

Default
TopLeft
TopCenter
TopRight
MiddleLeft
MiddleCenter
MiddleRight
BottomLeft
BottomCenter
BottomRight
Tile
Stretch
Fit

Applies to: Form


[property icon] PictureAlignment

Specifies the picture alignment

Enumerated type, possible values are:

Default
TopLeft
TopCenter
TopRight
MiddleLeft
MiddleCenter
MiddleRight
BottomLeft
BottomCenter
BottomRight
Tile
Stretch
Fit
Opposite

Applies to: Button , Picture Button


>

PictureAlignment

The PictureAlignment property is used to determine where the picture is placed on a control that supports pictures. The default is to stretch the picture to fit the entire area of the control.

The possible enumerated values are:

Default Same as Stretch
TopLeft Positioned in top left corner
TopCenter Centered horizontally at the top
TopRight Positioned to top right corner
MiddleLeft Vertically centered but on the left
MiddleCenter Centered
MiddleRight Vertically centered but on the right
BottomLeft Positioned in bottom left corner
BottomCenter Centered horizontally at the bottom
BottomRight Positioned in bottom right corner
Tile Picture drawn at normal size and repeated horizontally and vertically to cover the entire control
Stretch Picture stretched to fit the entire control
Fit Picture is stretched to cover as much of the control as possible without losing its aspect ratio
Opposite In a picture button control only, the picture is placed opposite the button text, meaning that the picture is shown normal size and centered in the space left after the text is drawn

For example, the following would place the CD icon at the bottom left hand corner of the form:

.form.Picture = &.CD
.form.PictureAlignment = &.BottomLeft

See also

Button methods, properties and events. Form methods, properties and events. Grid methods, properties and events. GridCell methods, properties and events. Picture Button methods, properties and events.