ClassLayoutControlItem
Represents an item of RadLayoutControl which can have an associated control. Responsible for arranging the associated control within the RadLayoutControl. Can display a text in addition to the control.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class LayoutControlItem : LayoutControlItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementLayoutControlItemBaseLayoutControlItem
Derived Classes:
Implements:
Inherited Members
Constructors
LayoutControlItem()
Declaration
public LayoutControlItem()
Properties
AssociatedControl
Gets or sets the control associated with this item.
ControlVerticalAlignment
Gets or sets the position of the text of the item.
Declaration
[Browsable(true)]
public RadVerticalAlignment ControlVerticalAlignment { get; set; }
Property Value
TextFixedSize
Gets or sets the fixed size of the text part which will be used when TextSizeMode is set to fixed.
Declaration
[Browsable(true)]
public int TextFixedSize { get; set; }
Property Value
TextMaxSize
Gets or sets the maximum size of the text part.
Declaration
[Browsable(true)]
public int TextMaxSize { get; set; }
Property Value
TextMinSize
Gets or sets the minimum size of the text part.
Declaration
[Browsable(true)]
public int TextMinSize { get; set; }
Property Value
TextPosition
Gets or sets the position of the text of the item.
Declaration
[Browsable(true)]
public virtual LayoutItemTextPosition TextPosition { get; set; }
Property Value
TextProportionalSize
Gets or sets the proportional size of the text part which will be used when TextSizeMode is set to proportional.
Declaration
[Browsable(true)]
public float TextProportionalSize { get; set; }
Property Value
TextSizeMode
Gets or sets the way in which the text part will be sized - proportionally or fixed-size.
Declaration
[Browsable(true)]
public LayoutItemTextSizeMode TextSizeMode { get; set; }
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
GetControlRectangle(RectangleF)
Gets the rectangle in which the associated control will be arranged.
Declaration
protected virtual Rectangle GetControlRectangle(RectangleF clientRect)
Parameters
clientRect
The client area of the item.
Returns
The arrange rectangle of the control.
GetTextRectangle(RectangleF)
Gets the rectangle in which the text part will be arranged.
Declaration
protected virtual RectangleF GetTextRectangle(RectangleF clientRect)
Parameters
clientRect
The client area of the item.
Returns
The arrange rectangle of the text part.
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
OnLoaded()
Called when the element has been successfully loaded. That includes loading of all its children as well.
Declaration
protected override void OnLoaded()
Overrides
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
The PropertyChangedEventArgs containing the property change information.
Overrides
OnNotifyPropertyChanged(string)
Raises the standard .NET PropertyChanged event with the specified property name to notify subscribers of property value changes.
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property that changed.
Overrides
OnParentChanged(RadElement)
Notifies for a change in the Parent value.
Declaration
protected override void OnParentChanged(RadElement previousParent)
Parameters
previousParent
The previous parent element (if any)
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
SetAssociatedControl(Control)
Declaration
protected virtual void SetAssociatedControl(Control value)
Parameters
value
UpdateControlBounds()
Updates the bounds of the associated control.
Declaration
public void UpdateControlBounds()