SplitContainer
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.1.0.0)
Represents a control consisting of a movable bar that divides a container's display area into two resizable panels.
- C#
- VB.NET
public class SplitContainer : ContainerControl, ISupportInitialize
Public Class SplitContainer
Inherits ContainerControl
Implements ISupportInitialize
Constructors
SplitContainer()
Initializes a new instance of the SplitContainer class.
Properties
BackgroundImage
Image: Returns or sets the background image displayed in the control. (Default: null)
Value: A Image that represents the image to display in the background of the control.
BackgroundImageSource
String: Returns or sets the background image displayed in the control. (Default: null)
Value: The theme name or URL for the image to display in the background of the control.
BindingContext
BindingContext: Returns or sets the BindingContext for the SplitContainer.
Value: A BindingContext for the control.
BorderStyle
BorderStyle: Returns or sets the style of border for the SplitContainer. (Default: Solid)
Value: One of the BorderStyle values. The default is Solid.
DefaultSize
Size: Returns the default size of the SplitContainer.
Value: A Size that represents the size of the SplitContainer.
FixedPanel
FixedPanel: Returns or sets which SplitContainer panel remains the same size when the container is resized. (Default: None)
Value: One of the values of FixedPanel. The default value is None.
IsSplitterFixed
Boolean: Returns or sets whether the splitter is fixed or movable. (Default: False)
Value: true if the splitter is fixed; otherwise, false. The default is false.
Orientation
Orientation: Returns or sets a value indicating the horizontal or vertical orientation of the SplitContainer panels. (Default: Vertical)
Value: One of the Orientation values. The default is Vertical.
Panel1
SplitterPanel: Returns the left or top panel of the SplitContainer, depending on Orientation.
Value: If Orientation is Vertical, the left panel of the SplitContainer. If Orientation is Horizontal, the top panel of the SplitContainer.
Panel1Collapsed
Boolean: Returns or sets a value determining whether Panel1 is collapsed or expanded. (Default: False)
Value: true if Panel1 is collapsed; otherwise, false. The default is false.
Panel1MinSize
Int32: Returns or sets the minimum distance in pixels of the splitter from the left or top edge of Panel1. (Default: 25)
Value: A Int32 representing the minimum distance in pixels of the splitter from the left or top edge of Panel1. The default value is 25 pixels, regardless of Orientation.
Throws:
- ArgumentOutOfRangeException The specified value is incompatible with the orientation.
Panel2
SplitterPanel: Returns the right or bottom panel of the SplitContainer, depending on Orientation.
Value: If Orientation is Vertical, the right panel of the SplitContainer. If Orientation is Horizontal, the bottom panel of the SplitContainer.
Panel2Collapsed
Boolean: Returns or sets a value determining whether Panel2 is collapsed or expanded. (Default: False)
Value: true if Panel2 is collapsed; otherwise, false. The default is false.
Panel2MinSize
Int32: Returns or sets the minimum distance in pixels of the splitter from the right or bottom edge of Panel2. (Default: 25)
Value: A Int32 representing the minimum distance in pixels of the splitter from the right or bottom edge of Panel2. The default value is 25 pixels, regardless of Orientation.
Throws:
- ArgumentOutOfRangeException The specified value is incompatible with the orientation.
SplitterDistance
Int32: Returns or sets the location of the splitter, in pixels, from the left or top edge of the SplitContainer. (Default: 50)
Value: A Int32 representing the location of the splitter, in pixels, from the left or top edge of the SplitContainer. The default value is 50 pixels.
Throws:
- ArgumentOutOfRangeException The value is less than zero.
- InvalidOperationException The value is incompatible with the orientation.
SplitterRectangle
Rectangle: Returns the size and location of the splitter relative to the SplitContainer.
Value: A Rectangle that specifies the size and location of the splitter relative to the SplitContainer.
SplitterWidth
Int32: Returns or sets the width of the splitter in pixels.
Value: A Int32 representing the width of the splitter, in pixels. The default is four pixels.
Throws:
- ArgumentOutOfRangeException The value is less than one or is incompatible with the orientation.
Methods
CreateControlsInstance()
Creates a new instance of the control collection for the control.
Returns: ControlCollection. A new instance of ControlCollection assigned to the control.
OnCreateControl()
OnLayout(e)
Fires the Layout event.
| Parameter | Type | Description |
|---|---|---|
| e | LayoutEventArgs | A LayoutEventArgs that contains the event data. |
OnOrientationChanged(e)
Fires the OrientationChanged event.
OnRightToLeftChanged(e)
Fires the RightToLeftChanged event.
OnSplitterMoved(e)
Fires the SplitterMoved event.
| Parameter | Type | Description |
|---|---|---|
| e | SplitterEventArgs | A SplitterEventArgs that contains the event data. |
OnSplitterMoving(e)
Fires the SplitterMoving event.
| Parameter | Type | Description |
|---|---|---|
| e | SplitterCancelEventArgs | A SplitterEventArgs that contains the event data. |
OnWebEvent(e)
Processes the event from the client.
| Parameter | Type | Description |
|---|---|---|
| e | WisejEventArgs | Event arguments. |
OnWebRender(config)
Renders the client component.
| Parameter | Type | Description |
|---|---|---|
| config | Object | Dynamic configuration object. |
ResetSplitterWidth()
Resets the size of the splitter to the value set in the theme.
ScaleControl(factor, specified)
Scales the location, size, padding and margin.
| Parameter | Type | Description |
|---|---|---|
| factor | SizeF | The factor by which the height and width of the control will be scaled. |
| specified | BoundsSpecified | A BoundsSpecified value that specifies the bounds of the control to use when defining its size and position. |
SetBoundsCore(x, y, width, height, specified)
| Parameter | Type | Description |
|---|---|---|
| x | Int32 | The new Left property value of the control. |
| y | Int32 | The new Top property value of the control. |
| width | Int32 | The new Width property value of the control. |
| height | Int32 | The new Height property value of the control. |
| specified | BoundsSpecified | A combination of the BoundsSpecified values. |
UpdateZOrder()
Events
OrientationChanged
EventHandler Fired when the value of Orientation changes.
SplitterMoved
SplitterEventHandler Fired when the splitter control is moved.
SplitterMoving
SplitterCancelEventHandler Fired when the splitter control is in the process of moving.
Implements
| Name | Description |
|---|---|
| IUserData | Provides access to the UserData and Tag properties associated to the component implementing this interface. |
| IBindableComponent | Bindable components implement this interface. |
| IContainerControl | Provides the functionality for a control to act as a parent for other controls. |
| IDropTarget | Controls that support drag & drop operations implement this interface. |
| IWisejComponent | All wisej components implement this interface. |
| IWisejControl | All wisej controls derived from the Control class must implement this interface. |
| IWisejSerializable | Allows an object to serialize itself. |