The IExtender interface provides a set of basic properties that are added to the interface of a control. Programmers can use these properties as if they were part of the control.
Members
The IExtender interface inherits from the IUnknown interface. IExtender also has these types of members:
Methods
The IExtender interface has these methods.
| Method | Description |
|---|---|
| Move | Moves an MDIForm, form, or control. |
Properties
The IExtender interface has these properties.
<table> <colgroup> <col /> <col /> <col /> </colgroup> <thead> <tr class="header"> <th >Property</th> <th >Access type</th> <th >Description</th> </tr> </thead> <tbody> <tr class="odd"> <td >Align</td> <td >Read/write</td> <td >Returns or sets a value that determines whether an object is displayed in any size anywhere on a form or whether it is displayed at the top, bottom, left, or right of the form and is automatically sized to fit the width of the form. <table> <thead> <tr class="header"> <th>Constant</th> <th>Description</th> </tr> </thead> <tbody> <tr class="odd"> <td>vbAlignNone 0</td> <td>(Default in a non-MDI form) None—size and location can be set at design time or in code. The setting is ignored if the object is on an MDI form.</td> </tr> <tr class="even"> <td>vbAlignTop 1</td> <td>(Default in an MDI form) Top—the object is at the top of the form, and its width is equal to the ScaleWidth property setting of the form.</td> </tr> <tr class="odd"> <td>vbAlignBottom 2</td> <td>Bottom—the object is at the bottom of the form, and its width is equal to the ScaleWidth property setting of the form.</td> </tr> <tr class="even"> <td>vbAlignLeft 3</td> <td>Left—the object is at the left of the form, and its width is equal to the ScaleWidth property setting of the form.</td> </tr> <tr class="odd"> <td>vbAlignRight 4</td> <td>Right—the object is at the right of the form, and its width is equal to the ScaleWidth property setting of the form.</td> </tr> </tbody> </table>
</td> </tr> <tr class="even"> <td >Container</td> <td >Read-only</td> <td >Returns the container of a control on a form.</td> </tr> <tr class="odd"> <td >Enabled</td> <td >Read/write</td> <td >Returns or sets a value that determines whether a form or control can respond to user-generated events.</td> </tr> <tr class="even"> <td >Height</td> <td >Read/write</td> <td >Returns or sets the height of an object.</td> </tr> <tr class="odd"> <td >Hwnd</td> <td >Read-only</td> <td >Returns a handle to a form or control.</td> </tr> <tr class="even"> <td >Left</td> <td >Read/write</td> <td >Returns or sets the distance between the internal left edge of an object and the left edge of its container.</td> </tr> <tr class="odd"> <td >Name</td> <td >Read-only</td> <td >Returns the name used in code to identify a form, control, or data access object.</td> </tr> <tr class="even"> <td >Parent</td> <td >Read-only</td> <td >Returns the form, object, or collection that contains a control or another object or collection.</td> </tr> <tr class="odd"> <td >TabStop</td> <td >Read/write</td> <td >Returns or sets a value that indicates whether a user can use the Tab key to give the focus to an object.</td> </tr> <tr class="even"> <td >Top</td> <td >Read/write</td> <td >Returns or sets the distance between the internal top edge of an object and the top edge of its container.</td> </tr> <tr class="odd"> <td >Visible</td> <td >Read/write</td> <td >Returns or sets a value that indicates whether an object is visible or hidden.</td> </tr> <tr class="even"> <td >Width</td> <td >Read/write</td> <td >Returns or sets the width of an object.</td> </tr> </tbody> </table>
Requirements
| Requirement | Value |
|---|---|
| DLL | Ole2disp.dll; Oleaut32.dll |
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
