Class SfTabbedFormControl
Represents the control that provides the options to load tabs in SfTabbedForm.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class SfTabbedFormControl : BaseControl, IThemeProvider, IVisualStyle, IDisposable
Constructors
SfTabbedFormControl()
Initializes a new instance of the SfTabbedFormControl class.
Declaration
public SfTabbedFormControl()
Properties
AllowDraggingTabs
Gets or sets a value indicating whether the tabs can be repositioned by using mouse or touch.
Declaration
public bool AllowDraggingTabs { get; set; }
Property Value
Type |
---|
System.Boolean |
SelectedIndex
Gets or sets the index of the currently selected tab page.
Declaration
public int SelectedIndex { get; set; }
Property Value
Type |
---|
System.Int32 |
SelectedTab
Gets or sets the currently selected tab page.
Declaration
public TabPageAdv SelectedTab { get; set; }
Property Value
Type |
---|
TabPageAdv |
ShowCloseButtonForActiveTabOnly
Gets or sets a value indicating whether inactive tab close button should be visible or not.
Declaration
public bool ShowCloseButtonForActiveTabOnly { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowTabCloseButton
Gets or sets a value indicating whether close button should be visible for each tab.
Declaration
public bool ShowTabCloseButton { get; set; }
Property Value
Type |
---|
System.Boolean |
Style
Declaration
public TabbedFormVisualStyle Style { get; }
Property Value
Type |
---|
TabbedFormVisualStyle |
TabContextMenu
Gets or sets the context menu that appears on the tabs.
Declaration
public ContextMenuStrip TabContextMenu { get; set; }
Property Value
Type |
---|
System.Windows.Forms.ContextMenuStrip |
TabPrimitiveMode
Gets or sets a value indicating the tab primitive mode for the tab navigation.
Declaration
public TabPrimitiveMode TabPrimitiveMode { get; set; }
Property Value
Type |
---|
TabPrimitiveMode |
Tabs
Gets or sets the collection of tabs.
Declaration
public Control.ControlCollection Tabs { get; set; }
Property Value
Type |
---|
System.Windows.Forms.Control.ControlCollection |
Methods
Dispose(Boolean)
Clean up any resources being used.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true if managed resources should be disposed; otherwise, false. |
GetControlName(String)
Helps to apply the ControlName settings in control
Declaration
public override string GetControlName(string controlName)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlName | The name of the control |
Returns
Type | Description |
---|---|
System.String | Returns the control name. |
Overrides
OnThemeNameChanged(String)
Helps to apply the ThemeName settings in control
Declaration
public override void OnThemeNameChanged(string themeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | themeName | The ThemeName of the Control |
Overrides
Events
ContextMenuOpening
Occurs when context menu on the tab is opening.
Declaration
public event EventHandler<ContextMenuOpeningEventArgs> ContextMenuOpening
Event Type
Type |
---|
System.EventHandler<ContextMenuOpeningEventArgs> |
SelectedIndexChanged
Occurs when the selected index of tab has been changed.
Declaration
public event EventHandler SelectedIndexChanged
Event Type
Type |
---|
System.EventHandler |
SelectedIndexChanging
Occurs when the selected index of tab is changing.
Declaration
public event SelectedIndexChangingEventHandler SelectedIndexChanging
Event Type
Type |
---|
SelectedIndexChangingEventHandler |
TabDragging
Declaration
public event EventHandler<TabDraggingEventArgs> TabDragging
Event Type
Type |
---|
System.EventHandler<TabDraggingEventArgs> |
TabPrimitiveClick
Occurs when click on the tab navigation button.
Declaration
public event EventHandler<TabPrimitiveClickEventArgs> TabPrimitiveClick
Event Type
Type |
---|
System.EventHandler<TabPrimitiveClickEventArgs> |