Class RadSplitContainer
Represents a container control that provides a resizable split interface with multiple panels. The control supports both horizontal and vertical orientations and allows dynamic resizing of contained panels.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Containers")]
[RadToolboxItem(false)]
public class RadSplitContainer : SplitPanel, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadSplitContainer()
RadSplitContainer(Orientation)
Initializes a new instance of the RadSplitContainer class with the specified orientation.
Declaration
public RadSplitContainer(Orientation orientation)
Parameters
System.Windows.Forms.Orientation
orientation
The orientation of the split container. |
Properties
AutoSize
Gets or sets whether the edit control is auto-sized
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
ContentRectangle
Declaration
public virtual Rectangle ContentRectangle { get; }
Property Value
System.Drawing.Rectangle
|
Cursor
Gets or sets the cursor that is displayed when the mouse pointer is over the control.
Declaration
public override Cursor Cursor { get; set; }
Property Value
System.Windows.Forms.Cursor
|
EnableCollapsing
Determines whether the panels can be collapsed when clicking twice on splitter or click once on navigation button. If you disable collapsing, UseSplitterButtons will also be disabled.
Declaration
public bool EnableCollapsing { get; set; }
Property Value
System.Boolean
|
EnableImmediateResize
Gets a value indicating whether the bounds of the split panels should be updated immediately on drag.
Declaration
public bool EnableImmediateResize { get; set; }
Property Value
System.Boolean
|
ForeColor
This property is not relevant for this class.
Declaration
public override Color ForeColor { get; set; }
Property Value
System.Drawing.Color
|
Overrides
HasNonCollapsedChild
Declaration
public bool HasNonCollapsedChild { get; }
Property Value
System.Boolean
|
HasVisibleSplitPanels
Declaration
public bool HasVisibleSplitPanels { get; }
Property Value
System.Boolean
|
HorizontalResizeCursor
Gets or sets the cursor which is used while resizing a panel and the control`s orientation is horizontal.
Declaration
public virtual Cursor HorizontalResizeCursor { get; set; }
Property Value
System.Windows.Forms.Cursor
|
IsCleanUpTarget
Determines whether the container is a target of automatic defragment operation. This property is internally used by the framework and is not intended to be directly used in code.
Declaration
public bool IsCleanUpTarget { get; set; }
Property Value
System.Boolean
|
LayoutStrategy
Gets or sets the layout strategy that arranges all the visible SplitPanel children.
Declaration
public SplitContainerLayoutStrategy LayoutStrategy { get; set; }
Property Value
SplitContainerLayoutStrategy
|
NavigationButtonCursor
Orientation
Gets or sets a value indicating the horizontal or vertical orientation of the Telerik.WinControls.UI.RadSplitContainer panels.
Declaration
public Orientation Orientation { get; set; }
Property Value
System.Windows.Forms.Orientation
|
RootContainer
SplitContainerElement
Gets the split container element.
Declaration
public SplitContainerElement SplitContainerElement { get; }
Property Value
SplitContainerElement
|
SplitPanels
SplitterDistance
Gets a value indicating the splitter distance. Never set the value of this property directly.
Declaration
public int SplitterDistance { get; set; }
Property Value
System.Int32
|
Splitters
SplitterWidth
Gets or sets the width of a single splitter on the container. Specify zero to prevent displaying any splitters at all.
Declaration
[RadPropertyDefaultValue("SplitterWidth", typeof(SplitContainerElement))]
public virtual int SplitterWidth { get; set; }
Property Value
System.Int32
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
ThemeClassName
Declaration
public override string ThemeClassName { get; set; }
Property Value
System.String
|
Overrides
UseSplitterButtons
Enable and Disable navigation buttons. If you enable the buttons EnableCollapsing will also be enabled.
Declaration
public bool UseSplitterButtons { get; set; }
Property Value
System.Boolean
|
VerticalResizeCursor
Gets or sets the cursor which is used while resizing a panel and the control`s orientation is vertical.
Declaration
public virtual Cursor VerticalResizeCursor { get; set; }
Property Value
System.Windows.Forms.Cursor
|
Methods
ApplySplitterWidth(Int32)
Applies the desired splitter width across all splitters and delegates the event to all descendant RadSplitContainer instances. This method is used internally.
Declaration
public virtual void ApplySplitterWidth(int splitterWidth)
Parameters
System.Int32
splitterWidth
|
ApplyThemeToSplitterElements()
Applies theme to all SplitterElements.
Declaration
protected virtual void ApplyThemeToSplitterElements()
CalculateSplitterDistance(RadDirection, Int32, Int32, Int32, Int32)
Calculates the splitter distance based on the specified direction and bounds.
Declaration
protected virtual void CalculateSplitterDistance(RadDirection direction, int initialSplitterDistance, int lastSplitterPosition, int boundsMinimum, int boundsMaximum)
Parameters
RadDirection
direction
The direction to move the splitter. |
System.Int32
initialSplitterDistance
The initial splitter distance. |
System.Int32
lastSplitterPosition
The last splitter position. |
System.Int32
boundsMinimum
The minimum bounds value. |
System.Int32
boundsMaximum
The maximum bounds value. |
CanSelectAtDesignTime()
Determines whether the container can be selected at design-time. This method is used internally and is not intended for public use.
Declaration
public virtual bool CanSelectAtDesignTime()
Returns
System.Boolean
True if the container can be selected at design-time; otherwise, false. |
Construct()
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
CreateControlsInstance()
Declaration
protected override Control.ControlCollection CreateControlsInstance()
Returns
System.Windows.Forms.Control.ControlCollection
|
GetSplitterElementAndButtonElementAtPoint(Point, out SplitterElement, out RadButtonElement)
Gets the SplitterElement and RadButtonElement whose rectangles contain the specified point.
Declaration
public virtual void GetSplitterElementAndButtonElementAtPoint(Point clientPoint, out SplitterElement splitter, out RadButtonElement button)
Parameters
System.Drawing.Point
clientPoint
The point to test, in SplitContainer client coordinates. |
SplitterElement
splitter
When this method returns, contains the SplitterElement at the specified point, or null if no splitter is found. |
RadButtonElement
button
When this method returns, contains the RadButtonElement at the specified point, or null if no button is found. |
GetSplitterElementAtPoint(Point)
Gets the SplitterElement which rectangle contains the specified point.
Declaration
public virtual SplitterElement GetSplitterElementAtPoint(Point clientPoint)
Parameters
System.Drawing.Point
clientPoint
Point to test, in SplitContainer client coordinates. |
Returns
SplitterElement
SplitterElement if found, null otherwise. |
LayoutInternal()
Performs the internal layout logic for the split container.
Declaration
protected void LayoutInternal()
MergeWithParentContainer()
Provides a routine which merges a container with its parent (if appropriate). The purpose of this logic is to remove internally created containers when they are not needed. This method is used internally and is not intended for public use.
Declaration
public virtual bool MergeWithParentContainer()
Returns
System.Boolean
True if the merge operation was successful; otherwise, false. |
MoveSplitter(SplitterElement, RadDirection)
Moves the specified splitter in the given direction.
Declaration
public void MoveSplitter(SplitterElement splitter, RadDirection direction)
Parameters
SplitterElement
splitter
The splitter element to move. |
RadDirection
direction
The direction to move the splitter. |
OnChildPanelCollapsedChanged(SplitPanel)
Called when a child panel's collapsed state changes.
Declaration
protected virtual void OnChildPanelCollapsedChanged(SplitPanel child)
Parameters
SplitPanel
child
The child panel whose collapsed state changed. |
OnControlRemoved(ControlEventArgs)
Called when a control is removed from the split container.
Declaration
protected override void OnControlRemoved(ControlEventArgs e)
Parameters
System.Windows.Forms.ControlEventArgs
e
The event arguments containing information about the removed control. |
Overrides
OnLayout(LayoutEventArgs)
Called when the layout needs to be performed.
Declaration
protected override void OnLayout(LayoutEventArgs e)
Parameters
System.Windows.Forms.LayoutEventArgs
e
The layout event arguments. |
Overrides
OnLoad(Size)
Called when the control is loaded with the specified desired size.
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
System.Drawing.Size
desiredSize
The desired size of the control. |
Overrides
OnMouseDoubleClick(MouseEventArgs)
Called when the control is double-clicked.
Declaration
protected override void OnMouseDoubleClick(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The mouse event arguments. |
OnMouseDown(MouseEventArgs)
Called when a mouse button is pressed over the control.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The mouse event arguments. |
Overrides
OnMouseLeave(EventArgs)
Called when the mouse pointer leaves the control.
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
System.EventArgs
e
The event arguments. |
Overrides
OnMouseMove(MouseEventArgs)
Called when the mouse pointer moves over the control.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The mouse event arguments. |
Overrides
OnMouseUp(MouseEventArgs)
Called when a mouse button is released over the control.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
System.Windows.Forms.MouseEventArgs
e
The mouse event arguments. |
Overrides
OnNavigationButtonClick(Object, EventArgs)
OnOrientationChanged(EventArgs)
Called when the orientation of the split container changes.
Declaration
protected virtual void OnOrientationChanged(EventArgs e)
Parameters
System.EventArgs
e
The event arguments. |
OnPanelCollapsed(SplitterElement, EventArgs)
Raises the PanelCollapsed event.
Declaration
public virtual void OnPanelCollapsed(SplitterElement splitter, EventArgs e)
Parameters
SplitterElement
splitter
The splitter element involved in the operation. |
System.EventArgs
e
The event arguments. |
OnPanelCollapsing(SplitterElement, RadSplitContainer.PanelCollapsingEventArgs)
Raises the PanelCollapsing event.
Declaration
public virtual void OnPanelCollapsing(SplitterElement splitter, RadSplitContainer.PanelCollapsingEventArgs e)
Parameters
SplitterElement
splitter
The splitter element involved in the operation. |
RadSplitContainer.PanelCollapsingEventArgs
e
The event arguments containing panel collapsing information. |
OnParentChanged(EventArgs)
Called when the parent of the control changes.
Declaration
protected override void OnParentChanged(EventArgs e)
Parameters
System.EventArgs
e
The event arguments. |
Overrides
OnSplitterMoved(SplitterEventArgs)
Raises the SplitterMoved event.
Declaration
protected virtual void OnSplitterMoved(SplitterEventArgs e)
Parameters
System.Windows.Forms.SplitterEventArgs
e
The event arguments containing splitter movement information. |
OnSplitterMoving(SplitterCancelEventArgs)
Raises the SplitterMoving event.
Declaration
protected virtual void OnSplitterMoving(SplitterCancelEventArgs e)
Parameters
System.Windows.Forms.SplitterCancelEventArgs
e
The event arguments containing splitter movement information. |
OnThemeChanged()
Called when the theme of the control changes.
Declaration
protected override void OnThemeChanged()
Overrides
ResetBackColorThemeOverrides()
Resets theme overrides for the background color property.
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
RestoreSplitterPosition(SplitterElement)
Restores the splitter to its last known position.
Declaration
public void RestoreSplitterPosition(SplitterElement splitter)
Parameters
SplitterElement
splitter
The splitter element to restore. |
SetBackColorThemeOverrides()
Sets theme overrides for the background color property.
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
UpdateCollapsed()
Updates the collapsed state of this container based on its child panels. This method is used internally and is not intended for public use.
Declaration
public virtual void UpdateCollapsed()
UpdateSplitter(SplitContainerLayoutInfo, Int32, Rectangle)
Updates the splitter, associated with the specified index of a child SplitPanel.
Declaration
protected virtual void UpdateSplitter(SplitContainerLayoutInfo info, int panelIndex, Rectangle bounds)
Parameters
SplitContainerLayoutInfo
info
The layout info, containing information about the operation. |
System.Int32
panelIndex
The index of the panel for which the splitter should be updated. |
System.Drawing.Rectangle
bounds
The bounding rectangle of the splitter. |
Events
PanelCollapsed
Occurs when a panel has collapsed.
Declaration
public event RadSplitContainer.PanelCollapsedEventHandler PanelCollapsed
Event Type
RadSplitContainer.PanelCollapsedEventHandler
|
PanelCollapsedChanged
Occurs when the collapsed state of any panel changes.
Declaration
public event SplitPanelEventHandler PanelCollapsedChanged
Event Type
SplitPanelEventHandler
|
PanelCollapsing
Occurs when a panel is collapsing.
Declaration
public event RadSplitContainer.PanelCollapsingEventHandler PanelCollapsing
Event Type
RadSplitContainer.PanelCollapsingEventHandler
|
SplitterMoved
Occurs when any of the splitters is moved.
Declaration
public event SplitterEventHandler SplitterMoved
Event Type
System.Windows.Forms.SplitterEventHandler
|
SplitterMoving
Occurs when any of the splitters is moving.
Declaration
public event SplitterCancelEventHandler SplitterMoving
Event Type
System.Windows.Forms.SplitterCancelEventHandler
|