Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Namespace:  System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)
[BrowsableAttribute(false)]
public int SplitPosition { get; set; }

Property Value

Type: System.Int32
The distance, in pixels, between the Splitter control and the container edge that the control is docked to. If the Splitter control is not bound to a control, the value is -1.

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

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.