Class SplittedPanel
Implements panel with top, bottom, left, right sub-panels and splitters.
public class SplittedPanel : LayoutPanel, IBaseObject, IDisposableObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, INotifyDataErrorInfo
- Inheritance
-
SplittedPanel
- Implements
- Derived
Examples
Here is an example of SplittedPanel creation from code:
public static SplittedPanel InitSplittedPanel()
{
SplittedPanel panel = new();
ListBox LeftLabel = new()
{
Parent = panel.LeftPanel,
HasBorder = false,
};
LeftLabel.Add("Left");
ListBox RightLabel = new()
{
Parent = panel.RightPanel,
HasBorder = false,
};
RightLabel.Add("Right");
ToolBar toolbar = new()
{
Parent = panel.TopPanel,
};
InitGenericToolBar(toolbar);
panel.TopSplitter.Visible = false;
panel.TopPanel.Height = toolbar.ItemSize + 6;
ListBox BottomLabel = new()
{
Parent = panel.BottomPanel,
HasBorder = false,
};
BottomLabel.Add("Bottom");
LogListBox FillLabel = new()
{
Parent = panel.FillPanel,
HasBorder = false,
};
FillLabel.BindApplicationLog();
panel.RightPanel.Width = 150;
panel.LeftPanel.Width = 150;
panel.BottomPanel.Height = 200;
return panel;
}
Remarks
Example of how a SplittedPanel can look:
Constructors
- SplittedPanel()
Initializes a new instance of the SplittedPanel class.
Properties
- BottomPanel
Gets bottom sub-panel.
- BottomPanelHeight
Gets or sets height of the bottom panel.
- BottomSplitter
Gets bottom splitter.
- BottomVisible
Gets or sets whether bottom panel is visible.
- CenterPanel
Gets center sub-panel. Same as FillPanel.
- DefaultPanelSize
Gets default size of the left, top, right and bottom panels.
- FillPanel
Gets center sub-panel. Same as CenterPanel.
- LeftPanel
Gets left sub-panel.
- LeftPanelWidth
Gets or sets width of the left panel.
- LeftRightVisible
Gets or sets whether both left and right panels are visible.
- LeftSplitter
Gets left splitter.
- LeftVisible
Gets or sets whether left panel is visible.
- RightPanel
Gets right sub-panel.
- RightPanelWidth
Gets or sets width of the right panel.
- RightSplitter
Gets right splitter.
- RightVisible
Gets or sets whether right panel is visible.
- Splitters
Gets ControlSet with all splitters.
- TopBottomVisible
Gets or sets whether both top and bottom panels are visible.
- TopPanel
Gets top sub-panel.
- TopPanelHeight
Gets or sets height of the top panel.
- TopSplitter
Gets top splitter.
- TopVisible
Gets or sets whether top panel is visible.
Methods
- CreateAnyPanel()
Creates panel.
- CreateBottomPanel()
Creates bottom panel.
- CreateCenterPanel()
Creates center panel.
- CreateLeftPanel()
Creates left panel.
- CreateRightPanel()
Creates right panel.
- CreateTopPanel()
Creates top panel.