Class OneNoteStyleFlatTabsRenderer
This tab renderer implements the Office 2003 OneNoteStyle vertical flat tabs look-and-feel.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class OneNoteStyleFlatTabsRenderer : TabRenderer3D, ITabRenderer, IDisposable
Constructors
OneNoteStyleFlatTabsRenderer(ITabControl, ITabPanelRenderer)
Constructor of the OneNoteStyleFlatTabsRenderer class.
Declaration
public OneNoteStyleFlatTabsRenderer(ITabControl parent, ITabPanelRenderer panelRenderer)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The instance of the ITabControl |
ITabPanelRenderer | panelRenderer | The instance of the ITabPanelRenderer. |
Properties
CloseButtonPadding
Gets space in pixels between tab's interior and close button.
Declaration
public override int CloseButtonPadding { get; }
Property Value
Type |
---|
System.Int32 |
Overrides
CorrectCloseButtonPosition
Declaration
protected override Point CorrectCloseButtonPosition { get; }
Property Value
Type |
---|
System.Drawing.Point |
Overrides
TabPanelPropertyExtender
Gets the TabPanelPropertyExtender.
Declaration
public static OneNoteStyleFlatTabPanelProperty TabPanelPropertyExtender { get; }
Property Value
Type |
---|
OneNoteStyleFlatTabPanelProperty |
TabStyleName
Gets the TabStyleName.
Declaration
public static string TabStyleName { get; }
Property Value
Type |
---|
System.String |
Methods
DrawBackground(DrawTabEventArgs)
Draws the background of the tab.
Declaration
protected override void DrawBackground(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo | The object that has information regarding this tab and paint event. |
Overrides
DrawBorders(DrawTabEventArgs)
Declaration
protected override void DrawBorders(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
DrawInterior(DrawTabEventArgs)
Declaration
protected override void DrawInterior(DrawTabEventArgs drawItemInfo)
Parameters
Type | Name | Description |
---|---|---|
DrawTabEventArgs | drawItemInfo |
Overrides
GetOverlapSize(SizeF)
Returns the overlap size.
Declaration
public override SizeF GetOverlapSize(SizeF tabSize)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.SizeF | tabSize |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | The overlap size. |
Overrides
Remarks
This implementation returns (0, 0).
HitTest(PointF)
Indicates whether the specified position is within the current bounds.
Declaration
public override bool HitTest(PointF mousePosition)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.PointF | mousePosition | The mouse position to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if hit; false otherwise. |
Overrides
Implements
System.IDisposable