ClassSplitContainerLayoutStrategy
Defines the layout strategy for a RadSplitContainer.
Definition
Namespace:Telerik.WinControls.UI.Docking
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class SplitContainerLayoutStrategy
Inheritance: objectSplitContainerLayoutStrategy
Constructors
SplitContainerLayoutStrategy()
Declaration
public SplitContainerLayoutStrategy()
Properties
LayoutInfo
Gets the layout info associated with this layout strategy.
Declaration
protected SplitContainerLayoutInfo LayoutInfo { get; }
Property Value
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.
Methods
ApplySplitterCorrection(SplitPanel, SplitPanel, int)
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
left
The panel left (top) on the splitter.
right
The panel right (bottom) on the splitter.
dragLength
The dragged distance.
GetAvailableLength(List<SplitPanel>, int, int)
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
panels
index
remaining
Returns
GetLength(Size)
Gets an integer value for the specified size (depending on the orientation of the current laid-out container).
GetLengthF(SizeF)
Gets a single-precision value from the provides SizeF struct.
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
panel
Returns
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
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
container
UpdateLayoutInfo(RadSplitContainer)
Updates the layout info for a pending layout operation.
Declaration
protected virtual void UpdateLayoutInfo(RadSplitContainer container)
Parameters
container