Muokkaa

Jaa


Splitter.SplitPosition Property

Definition

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

public:
 property int SplitPosition { int get(); void set(int value); };
[System.ComponentModel.Browsable(false)]
public int SplitPosition { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.SplitPosition : int with get, set
Public Property SplitPosition As Integer

Property Value

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.

Attributes

Remarks

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).

Applies to

See also