Gets the edges of the container to which a control is bound 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.
- Warning
- Set the xtd::forms::control::anchor property after setting the xtd::forms::control::location and xtd::forms::control::size.
- Notes to Inheritors
- When overriding the anchor property in a derived class, use the base class's anchor property to extend the base implementation. Otherwise, you must provide all the implementation. You are not required to override both the get and set accessors of the anchor property; you can override only one if needed.