ClassLayoutControlItemBase
A base class for all items which can be placed in RadLayoutControl
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public abstract class LayoutControlItemBase : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLayoutControlItemBase
Derived Classes:
Implements:
Inherited Members
Constructors
LayoutControlItemBase()
Declaration
protected LayoutControlItemBase()
Properties
AllowDelete
Gets or sets a value indicating whether this item can be deleted by the end-user from the Customize dialog.
Declaration
[Browsable(true)]
public bool AllowDelete { get; set; }
Property Value
AllowHide
Gets or sets a value indicating whether this item can be hidden by the end-user from the Customize dialog.
Declaration
[Browsable(true)]
public bool AllowHide { get; set; }
Property Value
AutoSize
Gets or sets a value indicating whether the element size will be calculated automatically by the layout system. Value of false indicates that the element's size will not be changed when calculating the layout.
Declaration
public override bool AutoSize { get; set; }
Property Value
Overrides
DrawBorder
Gets or sets a value indicating whether the element should render its border during the paint operation. This property controls the visibility of all border styles including single borders, four borders, and outer-inner borders.
Declaration
public override bool DrawBorder { get; set; }
Property Value
Overrides
Methods
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
GetBorderPaintRect(float, SizeF)
Calculates the rectangle area that should be used for painting the border of the element, considering border width and scaling factors.
Declaration
protected override RectangleF GetBorderPaintRect(float angle, SizeF scale)
Parameters
angle
The rotation angle in degrees to consider for rectangle calculation.
scale
The scaling factors to consider for rectangle calculation.
Returns
A RectangleF representing the area where the border should be painted.
Overrides
GetParentItemsContainer()
Gets the ILayoutControlItemsHost which owns this item. Can be either LayoutControlContainerElement or LayoutControlTabbedGroup.
Declaration
public ILayoutControlItemsHost GetParentItemsContainer()
Returns
The owner item.
OnLoaded()
Called when the element has been successfully loaded. That includes loading of all its children as well.
Declaration
protected override void OnLoaded()
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
PaintElement(IGraphics, float, SizeF)
Performs the main painting operation for the element, rendering fill, content, and border in the correct order.
Declaration
protected override void PaintElement(IGraphics graphics, float angle, SizeF scale)
Parameters
graphics
The graphics context used for rendering.
angle
The rotation angle to apply during painting.
scale
The scaling factor to apply during painting.
Overrides
SetBoundsCore(Rectangle)
Sets the bounds of the element to the specified rectangle.
Declaration
protected override void SetBoundsCore(Rectangle bounds)
Parameters
bounds
The rectangle to set as bounds.
Overrides