Represents a tab in a RadTabbedFormControl instance.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTabbedFormControlTab : Panel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlPanelRadTabbedFormControlTab...
Implements:
Inherited Members
Constructors
Creates a tab panel that starts hidden and initializes the default text and image alignment.
public RadTabbedFormControlTab()
Creates a hidden tab with the specified caption.
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.
public override Color BackColor { get; set; }
The locally assigned color, or the first available inherited color.
Overrides:
Gets or sets the IPC context handle used by coded-UI clients to address this tab.
[Browsable(false)]
public IntPtr Context { get; set; }
Gets the base docking value. Assignments are ignored because the owning control positions the tab.
[Browsable(false)]
public override DockStyle Dock { get; set; }
Overrides:
Gets or sets the image to be displayed by the associated RadTabbedFormControlItem instance.
public Image Image { get; set; }
Gets or sets the alignment of the image on the drawing surface.
public ContentAlignment ImageAlignment { get; set; }
Gets the RadTabbedFormControlItem instance which is the UI representation of this tab.
[Browsable(false)]
public RadTabbedFormControlItem Item { get; }
Gets the RadTabbedFormControl instance that owns this tab.
[Browsable(false)]
public RadTabbedFormControl Owner { get; }
Gets or sets the text to be displayed in the associated item.
[Browsable(true)]
public override string Text { get; set; }
Overrides:
Gets or sets the alignment of the text content on the drawing surface.
public ContentAlignment TextAlignment { get; set; }
Gets or sets the position of text and image relative to each other.
public TextImageRelation TextImageRelation { get; set; }
Gets or sets the tooltip to be displayed when the item hovers tab's associated item.
public string ToolTipText { get; set; }
Methods
Associates this tab with its owner and refreshes its inherited background color.
protected virtual void Attach(RadTabbedFormControl tabbedControl)
The control that owns this tab.
Raises a background-color change notification so the owner-derived color can be refreshed.
protected virtual void CallBackColorChanged()
Clears the association with the owning tabbed form control.
protected virtual void Detach()
Synchronizes the tab's enabled state with its associated visual item.
protected override void OnEnabledChanged(EventArgs e)
The event data.
Overrides:
Updates the associated item's caption when the tab text changes.
protected override void OnTextChanged(EventArgs e)
The event data.
Overrides:
Updates the associated item when the tab tooltip changes.
Handles coded-UI requests to read or write public tab properties; the Selected request returns whether this tab is active.
protected virtual void ProcessCodedUIMessage(ref IPCMessage request)
The coded-UI request to process.
Processes a coded-UI IPC request for this tab.
public void ProcessMessage(ref IPCMessage request)
The request to process.
Resets a local style value and refreshes the associated item.
public void ResetValue(RadProperty property, ValueResetFlags flags)
The style property to reset.
flagsValueResetFlagsThe value sources to reset.
Resets a local style value using All and refreshes the associated item.
public void ResetValue(RadProperty property)
The style property to reset.
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Overrides:
Stores a local style value that can be synchronized to the associated tab item.
public void SetValue(RadProperty property, object value)
The style property to set.
valueobjectThe value to store.
Returns the control type name and this tab's text in the format RadTabbedFormControl [text].
public override string ToString()
A string identifying the tab by its displayed text.
Overrides:
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.
public void UpdateItemStyle()
Processes an IPC message from a coded-UI client before passing unhandled messages to the base window procedure.
protected override void WndProc(ref Message m)
The window message to process.
Overrides: