Class Tab
Represents a tab associated with a page.
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
Manina.Windows.Forms.Page
Tab
Inherited Members
Manina.Windows.Forms.Page.CreateControlsInstance()
Manina.Windows.Forms.Page.OnPaint(System.Windows.Forms.PaintEventArgs)
Manina.Windows.Forms.Page.BackColor
Manina.Windows.Forms.Page.Parent
Manina.Windows.Forms.Page.Location
Manina.Windows.Forms.Page.Size
Namespace: Manina.Windows.Forms
Assembly: TabControl.dll
Syntax
public class Tab : Page, UnsafeNativeMethods.IOleControl, UnsafeNativeMethods.IOleObject, UnsafeNativeMethods.IOleInPlaceObject, UnsafeNativeMethods.IOleInPlaceActiveObject, UnsafeNativeMethods.IOleWindow, UnsafeNativeMethods.IViewObject, UnsafeNativeMethods.IViewObject2, UnsafeNativeMethods.IPersist, UnsafeNativeMethods.IPersistStreamInit, UnsafeNativeMethods.IPersistPropertyBag, UnsafeNativeMethods.IPersistStorage, UnsafeNativeMethods.IQuickActivate, ISupportOleDropSource, IDropTarget, ISynchronizeInvoke, IWin32Window, IArrangedElement, IBindableComponent, IComponent, IDisposable
Constructors
| Improve this Doc View SourceTab()
Initializes a new instance of Tab.
Declaration
public Tab()
Properties
| Improve this Doc View SourceCloseButtonBounds
Gets the bounding rectangle of close tab button in control's client coordinates but without the view offset applied.
Declaration
[Browsable(false)]
protected Rectangle CloseButtonBounds { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Rectangle |
Font
Gets or sets the font associated with the control.
Declaration
public override Font Font { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Font |
Overrides
System.Windows.Forms.Control.Font
|
Improve this Doc
View Source
Icon
Gets or sets the tab icon.
Declaration
public Image Icon { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Image |
IconBounds
Gets the bounding rectangle of tab icon in control's client coordinates but without the view offset applied.
Declaration
[Browsable(false)]
protected Rectangle IconBounds { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Rectangle |
TabBounds
Gets the bounding rectangle of the tab in control's client coordinates but without the view offset applied.
Declaration
[Browsable(false)]
protected Rectangle TabBounds { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Rectangle |
TextBounds
Gets the bounding rectangle of tab text in control's client coordinates but without the view offset applied.
Declaration
[Browsable(false)]
protected Rectangle TextBounds { get; set; }
Property Value
Type | Description |
---|---|
System.Drawing.Rectangle |
Methods
| Improve this Doc View SourceOnContentsChanged(EventArgs)
Declaration
protected virtual void OnContentsChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
OnTextChanged(EventArgs)
Declaration
protected override void OnTextChanged(EventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.EventArgs | e |
Overrides
System.Windows.Forms.Control.OnTextChanged(System.EventArgs)
Events
| Improve this Doc View SourceContentsChanged
Occurs when the contents of a tab are changed.
Declaration
public event EventHandler ContentsChanged
Event Type
Type | Description |
---|---|
System.EventHandler |