Gets which control borders are docked to its parent control and determines how a control is resized with its parent.
- Returns
- One of the xtd::forms::dock_style values. The default is xtd::forms::dock_style::none.
- 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 in xtd::forms::status_bar, and xtd::forms::tool_bar.
- Examples
- demo.cpp, lcd_label2.cpp, lcd_label_with_dot_matrix.cpp, lcd_label_with_fourteen_segment.cpp, lcd_label_with_nine_segment.cpp, lcd_label_with_seven_segment.cpp, and lcd_label_with_sixteen_segment.cpp.