Class StackLayoutElement
Represent a stack layout element
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class StackLayoutElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
StackLayoutElement()
Declaration
public StackLayoutElement()
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(StackLayoutElement))]
public int ElementSpacing { get; set; }
Property Value
System.Int32
The element spacing. |
FitInAvailableSize
Gets or sets a value indicating whether to fit the available size.
Declaration
public bool FitInAvailableSize { get; set; }
Property Value
System.Boolean
|
Orientation
Gets or sets the item orientation.
Declaration
[RadPropertyDefaultValue("Orientation", typeof(StackLayoutElement))]
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(StackLayoutElement))]
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. |
ArrangeHorizontally(SizeF)
Arranges the items horizontally.
Declaration
protected virtual void ArrangeHorizontally(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final size. |
ArrangeItemsHorizontaly(RectangleF, SizeF, Single, Single)
Arranges the items horizontaly.
Declaration
protected virtual void ArrangeItemsHorizontaly(RectangleF clientRect, SizeF finalSize, float stretchableWidth, float spacing)
Parameters
System.Drawing.RectangleF
clientRect
The client rect. |
System.Drawing.SizeF
finalSize
The final size. |
System.Single
stretchableWidth
Width of the stretchable. |
System.Single
spacing
The spacing. |
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
ArrangeVertically(SizeF)
Arranges the items vertically.
Declaration
protected virtual void ArrangeVertically(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
The final size. |
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|