Anchor Property (AControl) |
Version 5 |
Returns or sets the anchor property of the control in a container.
[ enAnchor = ] Object.Anchor
The Anchor property syntax has the following parts:
Name |
Type |
Description |
Object |
A control |
A control object |
enAnchor |
enumAControlAnchor |
An integer specifying the type of Anchor |
enumAControlAnchor can be one of the following:
Name |
Value |
Description |
actrlAnchorNone |
0 |
The object has no anchor assigned. |
actrlAnchorTop |
1 |
The object is anchored at the top of the control container/form. |
actrlAnchorBottom |
2 |
The object is anchored at the bottom of the control container/form. |
actrlAnchorLeft |
4 |
The object is anchored at the left edge of the control container/form. |
actrlAnchorRight |
8 |
The object is anchored at the right edge of the control container/form. |
actrlAnchorAll |
15 (0xF) |
The object is anchored at all sides of the control container/form. |
The following statement returns the Anchor property of an ActiveX object:
lAnchor = ob1.Anchor
Any control which supports the Anchor property.