Class MultilineTabPanelRenderer
A ITabPanelRenderer instance that implements the multi-line tab mode.
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 MultilineTabPanelRenderer : TabPanelRenderer, ITabPanelRenderer, ITabPanelDefaultProperties
Constructors
MultilineTabPanelRenderer(ITabControl)
Creates a new instance of the MultilineTabPanelRenderer class.
Declaration
public MultilineTabPanelRenderer(ITabControl parent)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The instance of the ITabControl. |
Methods
ComputeTabPositions(Graphics)
Computes the tab positions given the Graphics context.
Declaration
public override void ComputeTabPositions(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics context. |
Overrides
Remarks
Called by the Layout to calculate the tab positions.
GetMinimumWidth(Graphics)
Returns the minimum width required in the tab panel to show all the tabs.
Declaration
protected float GetMinimumWidth(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | A System.Drawing.Graphics instance. |
Returns
Type | Description |
---|---|
System.Single | The minimum width in float. |
GetPreferredSize(Graphics, ref SizeF)
Overridden. See GetPreferredSize(Graphics, ref SizeF).
Declaration
public override void GetPreferredSize(Graphics g, ref SizeF preferredSize)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The Graphics object. |
System.Drawing.SizeF | preferredSize | Indicates the preferred size. |
Overrides
InvalidateTabs(Int32, Int32)
Invalidates the union of the tab regions specified by their indices.
Declaration
protected override void InvalidateTabs(int tab1, int tab2)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tab1 | The beginning tab index. |
System.Int32 | tab2 | The ending tab index. |