Class 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.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class LayoutControlItem : LayoutControlItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
LayoutControlItem()
Declaration
public LayoutControlItem()
Properties
AssociatedControl
Gets or sets the control associated with this item.
Declaration
public Control AssociatedControl { get; set; }
Property Value
System.Windows.Forms.Control
|
AssociatedControlName
Declaration
public string AssociatedControlName { get; set; }
Property Value
System.String
|
ControlVerticalAlignment
Gets or sets the position of the text of the item.
Declaration
public RadVerticalAlignment ControlVerticalAlignment { get; set; }
Property Value
RadVerticalAlignment
|
TextFixedSize
Gets or sets the fixed size of the text part which will be used when TextSizeMode is set to fixed.
Declaration
public int TextFixedSize { get; set; }
Property Value
System.Int32
|
TextMaxSize
Gets or sets the maximum size of the text part.
Declaration
public int TextMaxSize { get; set; }
Property Value
System.Int32
|
TextMinSize
Gets or sets the minimum size of the text part.
Declaration
public int TextMinSize { get; set; }
Property Value
System.Int32
|
TextPosition
Gets or sets the position of the text of the item.
Declaration
public virtual LayoutItemTextPosition TextPosition { get; set; }
Property Value
LayoutItemTextPosition
|
TextProportionalSize
Gets or sets the proportional size of the text part which will be used when TextSizeMode is set to proportional.
Declaration
public float TextProportionalSize { get; set; }
Property Value
System.Single
|
TextSizeMode
Gets or sets the way in which the text part will be sized - proportionally or fixed-size.
Declaration
public LayoutItemTextSizeMode TextSizeMode { get; set; }
Property Value
LayoutItemTextSizeMode
|
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
GetAlignedControlRectangle(Rectangle)
Declaration
protected virtual Rectangle GetAlignedControlRectangle(Rectangle controlArrangeRect)
Parameters
System.Drawing.Rectangle
controlArrangeRect
|
Returns
System.Drawing.Rectangle
|
GetControlRectangle(RectangleF)
Gets the rectangle in which the associated control will be arranged.
Declaration
protected virtual Rectangle GetControlRectangle(RectangleF clientRect)
Parameters
System.Drawing.RectangleF
clientRect
The client area of the item. |
Returns
System.Drawing.Rectangle
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
System.Drawing.RectangleF
clientRect
The client area of the item. |
Returns
System.Drawing.RectangleF
The arrange rectangle of the text part. |
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnLoaded()
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
protected override void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
OnNotifyPropertyChanged(String)
Declaration
protected override void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
|
Overrides
OnParentChanged(RadElement)
Declaration
protected override void OnParentChanged(RadElement previousParent)
Parameters
RadElement
previousParent
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
SetAssociatedControl(Control)
Declaration
protected virtual void SetAssociatedControl(Control value)
Parameters
System.Windows.Forms.Control
value
|
UpdateControlBounds()
Updates the bounds of the associated control.
Declaration
public void UpdateControlBounds()