LayoutControlItem
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
public LayoutControlItem()
Properties
Gets or sets the control associated with this item.
public Control AssociatedControl { get; set; }
Gets or sets the position of the text of the item.
[Browsable(true)]
public RadVerticalAlignment ControlVerticalAlignment { get; set; }
Gets or sets the fixed size of the text part which will be used when TextSizeMode is set to fixed.
[Browsable(true)]
public int TextFixedSize { get; set; }
Gets or sets the maximum size of the text part.
[Browsable(true)]
public int TextMaxSize { get; set; }
Gets or sets the minimum size of the text part.
[Browsable(true)]
public int TextMinSize { get; set; }
Gets or sets the position of the text of the item.
[Browsable(true)]
public virtual LayoutItemTextPosition TextPosition { get; set; }
Gets or sets the proportional size of the text part which will be used when TextSizeMode is set to proportional.
[Browsable(true)]
public float TextProportionalSize { get; set; }
Gets or sets the way in which the text part will be sized - proportionally or fixed-size.
[Browsable(true)]
public LayoutItemTextSizeMode TextSizeMode { get; set; }
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Gets the rectangle in which the associated control will be arranged.
protected virtual Rectangle GetControlRectangle(RectangleF clientRect)
The client area of the item.
Returns:The arrange rectangle of the control.
Gets the rectangle in which the text part will be arranged.
protected virtual RectangleF GetTextRectangle(RectangleF clientRect)
The client area of the item.
Returns:The arrange rectangle of the text part.
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Called when the element has been successfully loaded. That includes loading of all its children as well.
protected override void OnLoaded()
Overrides:
Raises the standard .NET PropertyChanged event to notify subscribers of property value changes using the provided event arguments.
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
The PropertyChangedEventArgs containing the property change information.
Overrides:
Raises the standard .NET PropertyChanged event with the specified property name to notify subscribers of property value changes.
protected override void OnNotifyPropertyChanged(string propertyName)
The name of the property that changed.
Overrides:
Notifies for a change in the Parent value.
protected override void OnParentChanged(RadElement previousParent)
The previous parent element (if any)
Overrides:
Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Updates the bounds of the associated control.
public void UpdateControlBounds()