TdxCustomDockControl.DockType Property
Returns a value indicating how the dock control is aligned within its parent control.
Declaration
property DockType: TdxDockingTypeEx read;
Property Value
Type |
---|
TdxDockingTypeEx |
Remarks
Use the DockType property to determine how the dock control is aligned within its parent control. This property can return the following values.
Value | Description |
---|---|
dtClient | The dock control occupies all the available area of its parent control. This value is returned by
|
dtLeft | The control is docked to the left edge of its parent. |
dtTop | The control is docked to the top edge of its parent. |
dtRight | The control is docked to the right edge of its parent. |
dtBottom | The control is docked to the bottom edge of its parent. |
dtNone | The dock control has no parent control. The dock control hasn’t been docked to any control or made to float. Also, dock sites always return dtNone. |
Suppose that dock controls are joined into a vertical or horizontal side container. In this case, the DockType property of all controls that are before the active child (the maximized control) will return dtLeft or dtTop respectively. As stated above, active children will return dtClient. Controls that follow the active child will return dtRight or dtBottom respectively. If none of the controls within a side container are maximized, the DockType property all controls will return dtLeft or dtTop.