Class SingleLineTabPanelRenderer
An ITabPanelRenderer instance that implements the single-line tab mode.
Inheritance
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class SingleLineTabPanelRenderer : TabPanelRenderer, ITabPanelRenderer, ITabPanelDefaultProperties
Constructors
SingleLineTabPanelRenderer(ITabControl)
Creates a new instance of the SingleLineTabPanelRenderer class.
Declaration
public SingleLineTabPanelRenderer(ITabControl parent)
Parameters
Type | Name | Description |
---|---|---|
ITabControl | parent | The ITabControl parent. |
Fields
fpadX
Indicates the Padding x.
Declaration
public float fpadX
Field Value
Type |
---|
System.Single |
fpadY
Indicates the padding y.
Declaration
public float fpadY
Field Value
Type |
---|
System.Single |
m_fScrollOffsetX
Indicates the scroll offset X position.
Declaration
public float m_fScrollOffsetX
Field Value
Type |
---|
System.Single |
Properties
CanScrollLeft
Indicates whether the tab can scroll left based on the current dimensions.
Declaration
public override bool CanScrollLeft { get; }
Property Value
Type |
---|
System.Boolean |
Overrides
CanScrollRight
Indicates whether the tab can scroll right based on the current dimensions.
Declaration
public override bool CanScrollRight { get; }
Property Value
Type |
---|
System.Boolean |
Overrides
LastKnownPreferredWidth
Gets or sets the LastKnownPreferredWidth.
Declaration
protected float LastKnownPreferredWidth { get; set; }
Property Value
Type |
---|
System.Single |
NeedRotateTextWhenVertical
Gets the whether the tabs need to rotate the text when aligned vertically.
Declaration
public bool NeedRotateTextWhenVertical { get; }
Property Value
Type |
---|
System.Boolean |
PadX
Gets / sets the padding to use to the left of the tabs while calculating the tab positions.
Declaration
public float PadX { get; set; }
Property Value
Type | Description |
---|---|
System.Single | A float value representing the horizontal padding. |
PadY
Gets / sets the padding to use to the top of the tabs while calculating the tab positions.
Declaration
public float PadY { get; set; }
Property Value
Type | Description |
---|---|
System.Single | A float value representing the vertical padding. |
ScrollingSupported
Indicates whether scrolling is supported by this renderer.
Declaration
public override bool ScrollingSupported { get; }
Property Value
Type |
---|
System.Boolean |
Overrides
ScrollOffsetX
Returns the current scroll position.
Declaration
protected float ScrollOffsetX { get; }
Property Value
Type |
---|
System.Single |
Remarks
A float value representing the scroll offset.
Methods
ComputeTabPositions(Graphics)
Overridden. See ComputeTabPositions(Graphics)
Declaration
public override void ComputeTabPositions(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics object. |
Overrides
GetPreferredSize(Graphics)
Overloaded. Returns the preferred size.
Declaration
protected SizeF GetPreferredSize(Graphics g)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics object. |
Returns
Type | Description |
---|---|
System.Drawing.SizeF | The preferred size. |
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 System.Drawing.Graphics object. |
System.Drawing.SizeF | preferredSize | The preferred size. |
Overrides
OnBoundsAffected()
Overridden. See OnBoundsAffected().
Declaration
protected override void OnBoundsAffected()
Overrides
OnSelectionChanged(Int32, Int32)
Overridden. See OnSelectionChanged(Int32, Int32)
Declaration
protected override void OnSelectionChanged(int previousIndex, int currentIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | previousIndex | |
System.Int32 | currentIndex |
Overrides
Scroll(ScrollIncrement, ScrollDirection)
Scrolls by the specified increment in the specified direction.
Declaration
public override void Scroll(ScrollIncrement siIncrement, ScrollDirection sdPhysicalDirection)
Parameters
Type | Name | Description |
---|---|---|
ScrollIncrement | siIncrement | The scroll increment. |
ScrollDirection | sdPhysicalDirection | The direction. |
Overrides
TabPanel_PropertyChanged(ITabPanelData, TabPanelPropertyChangedEventArgs)
Declaration
protected override void TabPanel_PropertyChanged(ITabPanelData sender, TabPanelPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
ITabPanelData | sender | Event sender. |
TabPanelPropertyChangedEventArgs | e | Event data. |
Overrides
ValidateScrollOffset(Boolean, Boolean)
Validates the current scroll offset, recalculating it, if necessary.
Declaration
public override void ValidateScrollOffset(bool makeSelectedTabVisible, bool invalidate)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | makeSelectedTabVisible | Indicates whether to make the selected tab visible. |
System.Boolean | invalidate | Indicates whether to force a repaint if recalculation is necessary. |