New to Telerik UI for WinForms? Start a free 30-day trial

Represents a tab in a RadTabbedFormControl instance.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadTabbedFormControlTab : Panel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlPanelRadTabbedFormControlTab...

Implements: IBindableComponentIComponentIDisposableIDropTargetISynchronizeInvokeIWin32Window...

Inherited Members Panel.OnResize(EventArgs)Panel.AutoSizePanel.AutoSizeModePanel.BorderStylePanel.CreateParamsPanel.DefaultSizePanel.TabStopPanel.AutoSizeChanged...

Constructors

Creates a tab panel that starts hidden and initializes the default text and image alignment.

C#
public RadTabbedFormControlTab()

Creates a hidden tab with the specified caption.

C#
public RadTabbedFormControlTab(string text)
Parameters:textstring

The text displayed for the tab.

Properties

Gets or sets the tab's background color. An unset color inherits from the owner, then from its loaded content area, before falling back to the base panel color.

C#
public override Color BackColor { get; set; }
Property Value:

The locally assigned color, or the first available inherited color.

Overrides: Control.BackColor

Gets or sets the IPC context handle used by coded-UI clients to address this tab.

C#
[Browsable(false)]
public IntPtr Context { get; set; }

Gets the base docking value. Assignments are ignored because the owning control positions the tab.

C#
[Browsable(false)]
public override DockStyle Dock { get; set; }

Overrides: Control.Dock

Gets or sets the image to be displayed by the associated RadTabbedFormControlItem instance.

C#
public Image Image { get; set; }

Gets or sets the alignment of the image on the drawing surface.

C#
public ContentAlignment ImageAlignment { get; set; }

Gets the RadTabbedFormControlItem instance which is the UI representation of this tab.

C#
[Browsable(false)]
public RadTabbedFormControlItem Item { get; }

Gets the RadTabbedFormControl instance that owns this tab.

C#
[Browsable(false)]
public RadTabbedFormControl Owner { get; }

Gets or sets the text to be displayed in the associated item.

C#
[Browsable(true)]
public override string Text { get; set; }

Overrides: Panel.Text

Gets or sets the alignment of the text content on the drawing surface.

C#
public ContentAlignment TextAlignment { get; set; }

Gets or sets the position of text and image relative to each other.

C#
public TextImageRelation TextImageRelation { get; set; }

Gets or sets the tooltip to be displayed when the item hovers tab's associated item.

C#
public string ToolTipText { get; set; }

Methods

Associates this tab with its owner and refreshes its inherited background color.

C#
protected virtual void Attach(RadTabbedFormControl tabbedControl)
Parameters:tabbedControlRadTabbedFormControl

The control that owns this tab.

Raises a background-color change notification so the owner-derived color can be refreshed.

C#
protected virtual void CallBackColorChanged()

Clears the association with the owning tabbed form control.

C#
protected virtual void Detach()

Detaches this tab from its owner and disposes its associated visual item.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

true when disposing managed resources; otherwise, false.

Overrides: Control.Dispose(bool)

Synchronizes the tab's enabled state with its associated visual item.

C#
protected override void OnEnabledChanged(EventArgs e)
Parameters:eEventArgs

The event data.

Overrides: Control.OnEnabledChanged(EventArgs)

C#
protected virtual void OnImageAlignmentChanged(EventArgs e)
Parameters:eEventArgs
C#
protected virtual void OnImageChanged(EventArgs e)
Parameters:eEventArgs
C#
protected virtual void OnTextAlignmentChanged(EventArgs e)
Parameters:eEventArgs

Updates the associated item's caption when the tab text changes.

C#
protected override void OnTextChanged(EventArgs e)
Parameters:eEventArgs

The event data.

Overrides: Control.OnTextChanged(EventArgs)

C#
protected virtual void OnTextImageRelationChanged(EventArgs e)
Parameters:eEventArgs

Updates the associated item when the tab tooltip changes.

C#
protected virtual void OnToolTipTextChanged(EventArgs e)
Parameters:eEventArgs

The event data.

Handles coded-UI requests to read or write public tab properties; the Selected request returns whether this tab is active.

C#
protected virtual void ProcessCodedUIMessage(ref IPCMessage request)
Parameters:requestIPCMessage

The coded-UI request to process.

Processes a coded-UI IPC request for this tab.

C#
public void ProcessMessage(ref IPCMessage request)
Parameters:requestIPCMessage

The request to process.

Resets a local style value and refreshes the associated item.

C#
public void ResetValue(RadProperty property, ValueResetFlags flags)
Parameters:propertyRadProperty

The style property to reset.

flagsValueResetFlags

The value sources to reset.

Resets a local style value using All and refreshes the associated item.

C#
public void ResetValue(RadProperty property)
Parameters:propertyRadProperty

The style property to reset.

C#
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters:xintyintwidthintheightintspecifiedBoundsSpecified

Overrides: Control.SetBoundsCore(int, int, int, int, BoundsSpecified)

Stores a local style value that can be synchronized to the associated tab item.

C#
public void SetValue(RadProperty property, object value)
Parameters:propertyRadProperty

The style property to set.

valueobject

The value to store.

Returns the control type name and this tab's text in the format RadTabbedFormControl [text].

C#
public override string ToString()
Returns:

string

A string identifying the tab by its displayed text.

Overrides: Panel.ToString()

Applies locally set image and text-layout values to the associated tab item, and clears its local overrides when the tab has no local value.

C#
public void UpdateItemStyle()

Processes an IPC message from a coded-UI client before passing unhandled messages to the base window procedure.

C#
protected override void WndProc(ref Message m)
Parameters:mMessage

The window message to process.

Overrides: ScrollableControl.WndProc(ref Message)