System.Windows.Forms.Splitter.Dock Property

Gets or sets which System.Windows.Forms.Splitter borders are docked to its parent control and determines how a System.Windows.Forms.Splitter is resized with its parent.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(System.Windows.Forms.DockStyle.Left)]
public override DockStyle Dock { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the Splitter.Dock property to define how a control is automatically resized as its parent control is resized. You can only set the Splitter.Dock property to DockStyle.Top, DockStyle.Bottom, DockStyle.Left, or DockStyle.Right. The System.Windows.Forms.Splitter control enables the user to resize the docked control that is immediately before it in the docking order. Therefore, to enable the user to resize a docked control, dock the control to an edge of a container, and then dock a System.Windows.Forms.Splitter control to the same side of that container. For more information, see the example in the System.Windows.Forms.Splitter class.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0