System.Windows.Forms.Splitter.SplitPosition Property

Gets or sets the distance between the splitter control and the container edge that the control is docked to. Splitter.SplitPosition has been replaced by SplitContainer.Panel1MinSize and SplitContainer.Panel2MinSize and is provided only for compatibility with previous versions.

Syntax

[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
[System.ComponentModel.Browsable(false)]
public int SplitPosition { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

For a horizontal System.Windows.Forms.Splitter control (a System.Windows.Forms.Splitter control docked to the top or bottom of a container), this value is the height of the resizable control. For a vertical System.Windows.Forms.Splitter control (a System.Windows.Forms.Splitter control docked to the left or right of a container), this value is the width of the resizable control. You can use the Splitter.SplitPosition property in an event handler for the Splitter.SplitterMoved or Splitter.SplitterMoving events to determine the size of the control that the System.Windows.Forms.Splitter control is docked to and limit its width to a specified maximum width (or height if a horizontally docked System.Windows.Forms.Splitter control).

Requirements

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