Class TabBarSplitterControl
Provides functionality for displaying several TabBarPage controls
in an Excel-like workbook control. Each TabBarPage might optionally
support splitting its view with a dynamic splitter frame.
Inheritance
System.Object
TabBarSplitterControl
Implements
System.Windows.Forms.IContainerControl
Assembly: Syncfusion.Shared.Base.dll
public class TabBarSplitterControl : SplitterControl, IControlToolTipProvider, IInternalSplitterParent, IScrollBarFrame, IDynamicSplitterFrame, IThemedControl, IContainerControl, INonClientPaintingSupport, IThemeProvider, IVisualStyle
Constructors
Declaration
public TabBarSplitterControl()
Properties
Gets or sets a value indicating whether the control should enable its Accessibility support.
Declaration
public bool AccessibilityEnabled { get; set; }
Property Value
ActivePage
Gets or sets the currently visible TabBarPage.
Declaration
public TabBarPage ActivePage { get; set; }
Property Value
ActivePageBorderColor
Specifies the color with which the ActivePageBorder bottom border should be drawn.
Declaration
public Color ActivePageBorderColor { get; set; }
Property Value
Type |
System.Drawing.Color |
ActivePageIndex
Gets or sets the index of the active page.
Declaration
public int ActivePageIndex { get; set; }
Property Value
Gets/Sets the Hover color for AddButton.
Declaration
public Color AddButtonHoverColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets/Sets background image for AddNewTabBarPageButton
Declaration
public Image AddNewButtonImage { get; set; }
Property Value
Type |
System.Drawing.Image |
Declaration
public TabBar Bar { get; }
Property Value
Declaration
protected override CreateParams CreateParams { get; }
Property Value
Type |
System.Windows.Forms.CreateParams |
Overrides
Gets or sets the color of the arrows in the disabled buttons.
Declaration
public Color DisabledColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Enable the edit mode in Selected TabBar
Declaration
public bool EditOnTab { get; set; }
Property Value
Gets or sets the color of the arrows in the enabled buttons.
Declaration
public Color EnabledColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or sets value to enable or disable the EnableOffice2013Style in MetroStyle
Declaration
public bool EnableOffice2013Style { get; set; }
Property Value
Gets or sets value to enable or disable the Touchmode to the controls.
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Gets a value indicating whether the visual style based theme is applied to the control and
also indicates whether the theme files are referred from external assemblies or not.
Declaration
public bool IsVisualStyleEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
Return true, if the visual style based theme is applied to the control. Otherwise returns false.
|
Enable the edit mode when Double Click on TabBarPage
Declaration
public bool LabelEdit { get; set; }
Property Value
Gets or sets office 2007 color scheme.
Declaration
public Office2007Theme Office2007ColorScheme { get; set; }
Property Value
Gets or sets office 2007 style scroll bars. (overridden property)
Declaration
public override bool Office2007ScrollBars { get; set; }
Property Value
Overrides
Gets or sets office 2007 scroll bars colorScheme. (overridden property)
Declaration
public override Office2007ColorScheme Office2007ScrollBarsColorScheme { get; set; }
Property Value
Overrides
Gets or sets the width of the tab bar relative to the width of the client bounds.
Declaration
public int RelativeWidth { get; set; }
Property Value
Gets or sets the number of milliseconds to wait before repeatedly firing scroll event.
Declaration
public int RepeatClickDelay { get; set; }
Property Value
Enables or disables the resizing of tab bar.
Declaration
public bool Resizable { get; set; }
Property Value
Gets or sets the scroll behavior of this tab bar: pixel or tabs.
Declaration
public InternalTabBarScrollBehavior ScrollBehavior { get; set; }
Property Value
Type |
Syncfusion.Windows.Forms.InternalTabBarScrollBehavior |
Gets or sets the arrow buttons to be shown in an arrow bar.
Declaration
public DisplayArrowButtons ScrollButtons { get; set; }
Property Value
ShowAddNewTabBarPageOption
Gets/Sets whether to display AddNewPageTabBarPage Option or not
Declaration
public bool ShowAddNewTabBarPageOption { get; set; }
Property Value
Indicates whether Icons should be displayed in the tabs.
Declaration
public bool ShowIcons { get; set; }
Property Value
Gets or sets whether to show/hide the Seperator in MetroStyle
Declaration
public bool ShowMetroSeperator { get; set; }
Property Value
Gets or sets the size factor with that TabBar size to be increased
Declaration
public double SizeFactor { get; set; }
Property Value
Gets or sets the visual style of the tabBarSplitterControl.
Declaration
public TabBarSplitterStyle Style { get; set; }
Property Value
TabBarPages
Returns the list of TabBarPages displayed in the TabBar. Each TabBarPage
will have a tab associated with it.
Declaration
public TabBarPageCollection TabBarPages { get; }
Property Value
Gets or sets the delta used for drawing the tabs.
Declaration
public int TabFolderDelta { get; set; }
Property Value
Gets or sets the theme name of the control.
Declaration
public string ThemeName { get; set; }
Property Value
Type |
Description |
System.String |
The default value is null.
|
Declaration
public TabBarSplitterVisualStyle ThemeStyle { get; set; }
Property Value
Methods
ActivateNextPage(Boolean)
Activates the next or previous page.
Declaration
public void ActivateNextPage(bool prev)
Parameters
Type |
Name |
Description |
System.Boolean |
prev |
True if previous pane should be activated; False if next pane should be activated.
|
Scale the control based on the scale factor passed in the argument.
Declaration
public void ApplyScaleToControl(float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
scaleFactor |
value to scale the factor based upon.
|
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
System.Windows.Forms.AccessibleObject |
Declaration
protected override Control.ControlCollection CreateControlsInstance()
Returns
Type |
System.Windows.Forms.Control.ControlCollection |
Declaration
protected override Control CreateScrollBarContainer(ScrollBars sbType, int index)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ScrollBars |
sbType |
|
System.Int32 |
index |
|
Returns
Type |
System.Windows.Forms.Control |
Overrides
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Overrides
HidePage(TabBarPage)
Declaration
public void HidePage(TabBarPage page)
Parameters
Declaration
protected override void InitLayout()
MoveTabBarPage(TabBarPage, TabBarPage)
Move the Tabbarpage with respect to given pages.
Declaration
public void MoveTabBarPage(TabBarPage tabpage, TabBarPage destTabPage)
Parameters
MoveTabBarPage(Int32, Int32)
Move Tabbarpage with respect to given index.
Declaration
public void MoveTabBarPage(int tab, int destTab)
Parameters
Type |
Name |
Description |
System.Int32 |
tab |
|
System.Int32 |
destTab |
|
OnActivePageChanged(ControlEventArgs)
Declaration
protected virtual void OnActivePageChanged(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
Event data.
|
OnActivePageChanging(ControlEventArgs)
Declaration
protected virtual void OnActivePageChanging(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
Event data.
|
Declaration
protected override void OnButtonLookChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnCancelMode(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnControlRemoved(ControlEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.ControlEventArgs |
e |
|
Overrides
OnCreateTabBarPageCollection()
Declaration
public virtual TabBarPageCollection OnCreateTabBarPageCollection()
Returns
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.KeyEventArgs |
e |
|
Declaration
protected override void OnLayout(LayoutEventArgs levent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.LayoutEventArgs |
levent |
|
Overrides
Declaration
protected override void OnPaint(PaintEventArgs pe)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
pe |
|
Overrides
Declaration
protected override void OnShowToolTipsChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected virtual void OnStyleChanged()
Declaration
public virtual void OnTabBarVisibleChanged(TabBarVisibleChangedEventArgs arg)
Parameters
Declaration
protected override void OnValidatingLostFocus()
Overrides
Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
protected override bool ProcessDialogKey(Keys key)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Keys |
key |
|
Returns
Overrides
Declaration
protected override bool ProcessKeyEventArgs(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Declaration
protected override bool ProcessKeyMessage(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Declaration
protected override bool ProcessKeyPreview(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Returns
Overridden method of refresh.
Declaration
public override void Refresh()
Overrides
Resets the AddButtonHoverColor
Declaration
public void ResetAddButtonHoverColor()
Declaration
public void ResetAddNewButtonImage()
Declaration
public void ResetDisabledColor()
Declaration
public void ResetEditOnTab()
Declaration
public void ResetEnabledColor()
Declaration
public void ResetLabelEdit()
ResetShowAddNewTabBarPageOption()
Declaration
public void ResetShowAddNewTabBarPageOption()
Declaration
public void ResetSizeFactor()
To Specify EditOnTab to be serialized or not
Declaration
public bool ShouldSerializeEditOnTab()
Returns
To Specify LabelEdit to be serialized or not
Declaration
public bool ShouldSerializeLabelEdit()
Returns
ShowPage(TabBarPage)
Declaration
public void ShowPage(TabBarPage page)
Parameters
Called when the user finishes dragging a tab.
Declaration
protected virtual void TabsMoved(object sender, TabMovedEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
The source of the event.
|
TabMovedEventArgs |
e |
Event data.
|
Called when the user is dragging a tab.
Declaration
protected virtual void TabsMoving(object sender, TabMovedEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
The source of the event.
|
TabMovedEventArgs |
e |
Event data.
|
Overridden method of Tostring()
Declaration
public override string ToString()
Returns
Overrides
Declaration
protected override void WndProc(ref Message m)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
m |
|
Overrides
Events
ActivePageChanged
Occurs after the active page has changed.
Declaration
public event ControlEventHandler ActivePageChanged
Event Type
Type |
System.Windows.Forms.ControlEventHandler |
ActivePageChanging
Occurs before the active page is changed.
Declaration
public event ControlEventHandler ActivePageChanging
Event Type
Type |
System.Windows.Forms.ControlEventHandler |
Occurs before edting the TabBarPage.
Declaration
public event LabelEditBeginEventHandler LabelEditBegin
Event Type
Occurs after edting the TabBarPage.
Declaration
public event LabelEditEventHandler LabelEditEnd
Event Type
Triggers mouse down occurs on TabBar
Declaration
public event TabBarSelectionHandler TabBarMouseDown
Event Type
TabBarPageAdding
Occurs when Mouse pointer leave TabBarPage bounds
Declaration
public event TabBarPageAddingHandler TabBarPageAdding
Event Type
TabBarPageMouseEnter
Occurs when Mouse pointer rest on TabBarPage bounds
Declaration
public event TabPageSelectedEventHandler TabBarPageMouseEnter
Event Type
TabBarPageMouseLeave
Occurs when Mouse pointer leave TabBarPage bounds
Declaration
public event TabPageSelectedEventHandler TabBarPageMouseLeave
Event Type
Occurs when the TabBarPage is show or Hide or Add or Remove.
Declaration
public event TabBarVisibleChangedEventHandler TabBarVisibleChanged
Event Type
Explicit Interface Implementations
Declaration
IntPtr INonClientPaintingSupport.NonClientPaint(PaintEventArgs e, Rectangle displayRect, Rectangle windowRectInScreen)
Parameters
Type |
Name |
Description |
System.Windows.Forms.PaintEventArgs |
e |
|
System.Drawing.Rectangle |
displayRect |
|
System.Drawing.Rectangle |
windowRectInScreen |
|
Returns
Declaration
string IVisualStyle.VisualTheme { get; set; }
Returns
Implements
System.Windows.Forms.IContainerControl