RadSplitter
Represents a splitter control that provides a resizable divider between controls. The splitter allows users to resize adjacent controls by dragging the splitter bar, and provides collapse/expand functionality through navigation buttons.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadSplitter : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadSplitter...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadSplitter class.
public RadSplitter()
Properties
Gets or sets the border style for the splitter control.
public BorderStyle BorderStyle { get; set; }
Gets the current collapsed state of the splitter.
public SplitterCollapsedState CollapsedState { get; }
Gets the required creation parameters when the control handle is created.
protected override CreateParams CreateParams { get; }
Overrides:
Gets the default cursor for the splitter based on its dock position.
protected override Cursor DefaultCursor { get; }
Overrides:
protected override ImeMode DefaultImeMode { get; }
Overrides:
Gets the default size for the splitter control.
protected override Size DefaultSize { get; }
Overrides:
Gets or sets which side of the parent container the control is docked to.
public override DockStyle Dock { get; set; }
Overrides:
Gets a value indicating whether the splitter is currently collapsed.
public bool IsCollapsed { get; }
Gets or sets the minimum distance that must remain between the splitter control and the container edge that the control is docked to.
public int MinExtra { get; set; }
Gets or sets the minimum distance that must remain between the splitter control and the container edge opposite to the edge the control is docked to.
public int MinSize { get; set; }
Gets or sets the position of the splitter bar.
[Browsable(false)]
public int SplitPosition { get; set; }
Gets the splitter element that represents the visual element of the splitter.
[Browsable(false)]
public SplitterElement SplitterElement { get; }
Gets or sets the length of the splitter thumb in pixels.
public int ThumbLength { get; set; }
Methods
Collapses the splitter to the specified state.
public bool Collapse(SplitterCollapsedState target)
The collapse state target.
Returns:True if the splitter was successfully collapsed; otherwise, false.
Creates the child items for the splitter control and initializes the splitter element.
protected override void CreateChildItems(RadElement parent)
The parent element to which child items are added.
Overrides:
Expands the splitter to its normal state.
public bool Expand()
True if the splitter was successfully expanded; otherwise, false.
Raises the KeyDown event and handles escape key to end splitter operations.
protected override void OnKeyDown(KeyEventArgs e)
A KeyEventArgs that contains the event data.
Overrides:
Raises the MouseDown event and initiates splitter operations when appropriate.
protected override void OnMouseDown(MouseEventArgs e)
A MouseEventArgs that contains the event data.
Overrides:
Raises the MouseMove event and handles splitter movement operations.
protected override void OnMouseMove(MouseEventArgs e)
A MouseEventArgs that contains the event data.
Overrides:
Raises the MouseUp event and handles splitter collapse/expand operations.
protected override void OnMouseUp(MouseEventArgs e)
A MouseEventArgs that contains the event data.
Overrides:
Raises the SplitterMoved event.
protected virtual void OnSplitterMoved(SplitterEventArgs sevent)
A SplitterEventArgs that contains the event data.
Raises the SplitterMoving event.
protected virtual void OnSplitterMoving(SplitterEventArgs sevent)
A SplitterEventArgs that contains the event data.
Sets the bounds of the control and adjusts the splitter thickness accordingly.
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
The new x-coordinate of the control.
yintThe new y-coordinate of the control.
widthintThe new width of the control.
heightintThe new height of the control.
specifiedBoundsSpecifiedA bitwise combination of the BoundsSpecified values.
Overrides:
Returns a string that represents the current splitter, including its minimum extra space and minimum size.
public override string ToString()
A string representation of the splitter.
Overrides:
Events
Occurs when the splitter control is moved.
public event SplitterEventHandler SplitterMoved
Occurs when the splitter control is moving.
public event SplitterEventHandler SplitterMoving