Class SplitContainerLayoutStrategy
Defines the layout strategy for a RadSplitContainer.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI.Docking
Assembly: Telerik.WinControls.UI.dll
Syntax
public class SplitContainerLayoutStrategy
Constructors
SplitContainerLayoutStrategy()
Declaration
public SplitContainerLayoutStrategy()
Properties
LayoutInfo
Gets the layout info associated with this layout strategy.
Declaration
protected SplitContainerLayoutInfo LayoutInfo { get; }
Property Value
SplitContainerLayoutInfo
|
RootContainerType
Gets or sets the Type that is treated as Root for the layout strategy. Allows for defining how deep the search for a Fill panel should be.
Declaration
public Type RootContainerType { get; set; }
Property Value
System.Type
|
Methods
ApplySplitterCorrection(SplitPanel, SplitPanel, Int32)
Applies a correction in both of the specified panels, after a successful spliter drag operation.
Declaration
public virtual void ApplySplitterCorrection(SplitPanel left, SplitPanel right, int dragLength)
Parameters
SplitPanel
left
The panel left (top) on the splitter. |
SplitPanel
right
The panel right (bottom) on the splitter. |
System.Int32
dragLength
The dragged distance. |
GetAvailableLength(List<SplitPanel>, Int32, Int32)
Gets the available length left for the panel at the specified index.
Declaration
protected virtual int GetAvailableLength(List<SplitPanel> panels, int index, int remaining)
Parameters
System.Collections.Generic.List<SplitPanel>
panels
|
System.Int32
index
|
System.Int32
remaining
|
Returns
System.Int32
|
GetLength(Size)
Gets an integer value for the specified size (depending on the orientation of the current laid-out container).
Declaration
protected virtual int GetLength(Size size)
Parameters
System.Drawing.Size
size
|
Returns
System.Int32
|
GetLengthF(SizeF)
Gets a single-precision value from the provides SizeF struct.
Declaration
protected virtual float GetLengthF(SizeF size)
Parameters
System.Drawing.SizeF
size
|
Returns
System.Single
|
GetMinimumSize(SplitPanel)
Gets the minimum size for the specified split panel. If it is a container, the sum of minimum sizes of all child panels is calculated.
Declaration
protected virtual Size GetMinimumSize(SplitPanel panel)
Parameters
SplitPanel
panel
|
Returns
System.Drawing.Size
|
Layout(RadSplitContainer)
Performs the core layout logic. Updates each panel's bounds, keeping in mind restrictions like Minimum and Maximum size.
Declaration
protected virtual void Layout(RadSplitContainer container)
Parameters
RadSplitContainer
container
|
Measure()
Performs the core measure logic. This is the pass which determines the desired size for each panel.
Declaration
protected virtual void Measure()
PerformLayout(RadSplitContainer)
Entry point for the entire layout operation. Called in the OnLayout override of RadSplitContainer.
Declaration
public virtual void PerformLayout(RadSplitContainer container)
Parameters
RadSplitContainer
container
|
UpdateLayoutInfo(RadSplitContainer)
Updates the layout info for a pending layout operation.
Declaration
protected virtual void UpdateLayoutInfo(RadSplitContainer container)
Parameters
RadSplitContainer
container
|