Sets which control borders are docked to its parent control and determines how a control is resized with its parent.
- Parameters
-
- Returns
- Current control.
- Note
- The xtd::forms::control::anchor and xtd::forms::control::dock properties are mutually exclusive. Only one can be set at a time, and the last one set takes precedence.
- Notes to Inheritors
- When overriding the xtd::forms::control::dock property in a derived class, use the base class's xtd::forms::control::dock property to extend the base implementation. Otherwise, you must provide all the implementation. You are not required to override both the get and set methods of the xtd::forms::control::dock property; you can override only one if needed.
Reimplemented from xtd::forms::control.