Class StackLayoutElementLite
Represents a stack layout element that arranges its children horizontally or vertically. Is also offers ElementSpacing property and respects the element's alignment.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class StackLayoutElementLite : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
StackLayoutElementLite()
Declaration
public StackLayoutElementLite()
Fields
ElementSpacingProperty
OrientationProperty
RightToLeftModeProperty
Properties
Comparer
Gets or sets a comparer to be used for defining the order of the child elements.
Declaration
public IComparer<RadElement> Comparer { get; set; }
Property Value
|
System.Collections.Generic.IComparer<RadElement>
|
ElementSpacing
Gets or sets the element spacing between items.
Declaration
[RadPropertyDefaultValue("ElementSpacing", typeof(StackLayoutElementLite))]
public int ElementSpacing { get; set; }
Property Value
|
System.Int32
The element spacing. |
Orientation
Gets or sets the item orientation.
Declaration
[RadPropertyDefaultValue("Orientation", typeof(StackLayoutElementLite))]
public Orientation Orientation { get; set; }
Property Value
|
System.Windows.Forms.Orientation
The orientation. |
RightToLeftMode
Gets or sets the right to left mode.
Declaration
[RadPropertyDefaultValue("RightToLeftMode", typeof(StackLayoutElementLite))]
public StackLayoutElement.RightToLeftModes RightToLeftMode { get; set; }
Property Value
|
StackLayoutElement.RightToLeftModes
The right to left mode. |
Methods
AlignRect(RadElement, RectangleF)
Aligns the rectangle according to orientation and element's alignment.
Declaration
protected virtual RectangleF AlignRect(RadElement element, RectangleF arrangeRect)
Parameters
|
RadElement
element
The element. |
|
System.Drawing.RectangleF
arrangeRect
The arrange rect. |
Returns
|
System.Drawing.RectangleF
|
ArrangeElement(RadElement, RectangleF, RectangleF, SizeF)
Arranges the element.
Declaration
protected virtual void ArrangeElement(RadElement element, RectangleF clientRect, RectangleF finalRect, SizeF finalSize)
Parameters
|
RadElement
element
The element. |
|
System.Drawing.RectangleF
clientRect
The client rect. |
|
System.Drawing.RectangleF
finalRect
The final rect. |
|
System.Drawing.SizeF
finalSize
The final size. |
ArrangeOverride(SizeF)
Arranges the StackLayoutElementLite to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
|
System.Drawing.SizeF
finalSize
The size that is available for element. |
Returns
|
System.Drawing.SizeF
The rectangle occupied by the element. Usually |
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureElement(RadElement, ref SizeF, ref SizeF)
Measures the element.
Declaration
protected virtual void MeasureElement(RadElement element, ref SizeF availableSize, ref SizeF parentDesiredSize)
Parameters
|
RadElement
element
The element to measure. |
|
System.Drawing.SizeF
availableSize
The available size. |
|
System.Drawing.SizeF
parentDesiredSize
The desired size of its parent. |
MeasureOverride(SizeF)
Measures the space required by the StackLayoutElementLite
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
|
System.Drawing.SizeF
availableSize
The size that is available to the StackLayoutElementLite. The available size can be infinity (to take the full size of the element) |
Returns
|
System.Drawing.SizeF
The minimum size required by the element to be completely visible. Cannot be infinity. |
Overrides
Remarks
In this method call to the Measure method of each child must be made.