ClassRadTabbedFormControlItem
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadTabbedFormControlItem : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadTabbedFormControlItem
Implements:
Inherited Members
Constructors
RadTabbedFormControlItem()
Declaration
public RadTabbedFormControlItem()
Fields
Properties
ButtonsStack
Declaration
public StackLayoutPanel ButtonsStack { get; }
Property Value
CloseButton
Declaration
public LightVisualButtonElement CloseButton { get; }
Property Value
FillPadding
Gets or sets the padding that defines the offset of element's fill. This does not affect element's layout logic such as size and location but has only appearance impact.
IsSelected
Determines whether the item is currently selected (associated with the SelectedTab of the owning RadTabbedFormControl).
Declaration
[Browsable(false)]
public bool IsSelected { get; set; }
Property Value
Owner
Declaration
public RadTabbedFormControlElement Owner { get; }
Property Value
PinButton
Declaration
public LightVisualButtonElement PinButton { get; }
Property Value
Tab
Gets the RadTabbedFormControlTab instance associated with this item.
Declaration
[Browsable(false)]
public RadTabbedFormControlTab Tab { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateCloseButtonElement()
Declaration
protected virtual LightVisualButtonElement CreateCloseButtonElement()
Returns
CreatePinButtonElement()
Declaration
protected virtual LightVisualButtonElement CreatePinButtonElement()
Returns
Detach()
Declaration
public virtual void Detach()
InitializeFields()
Initializes the internal fields and components of the LightVisualElement. This method sets up text primitives, image primitives, and layout management components.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
ModifyBorderAndFillPaintRect(RectangleF, Padding)
Declaration
protected virtual RectangleF ModifyBorderAndFillPaintRect(RectangleF preferred, Padding padding)
Parameters
preferred
padding
Returns
OnClick(EventArgs)
Raises the Click event.
Declaration
protected override void OnClick(EventArgs e)
Parameters
e
Overrides
OnCloseButtonMouseUp(object, MouseEventArgs)
Declaration
protected virtual void OnCloseButtonMouseUp(object sender, MouseEventArgs e)
Parameters
sender
e
OnIsPinnedChanged(bool)
Declaration
protected virtual void OnIsPinnedChanged(bool isPinned)
Parameters
isPinned
OnMouseDown(MouseEventArgs)
Called when a mouse button is pressed down over the item.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnMouseMove(MouseEventArgs)
Called when the mouse moves over the item, handling highlight and border highlight effects.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnMouseUp(MouseEventArgs)
Called when a mouse button is released over the item.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
The mouse event arguments.
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
Event arguments containing information about the property that changed.
Overrides
PaintFill(IGraphics, float, SizeF, RectangleF)
Renders the background fill of the element within the specified rectangle using the provided graphics context, rotation angle, and scaling factor.
Declaration
protected override void PaintFill(IGraphics graphics, float angle, SizeF scale, RectangleF rect)
Parameters
graphics
The graphics context used for painting operations.
angle
The rotation angle in degrees to apply during painting.
scale
The scaling factors to apply for width and height during painting.
rect
Overrides
RestoreDefaulTabState()
Declaration
protected virtual void RestoreDefaulTabState()
SetDragTabState(DragDirection, int)
Declaration
protected virtual void SetDragTabState(DragDirection direction, int deltaX)
Parameters
direction
deltaX