New to Telerik UI for WinFormsStart a free 30-day trial

Defines the layout strategy for a RadSplitContainer.

Definition

Namespace:Telerik.WinControls.UI.Docking

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class SplitContainerLayoutStrategy

Inheritance: objectSplitContainerLayoutStrategy

Constructors

C#
public SplitContainerLayoutStrategy()

Properties

Gets the layout info associated with this layout strategy.

C#
protected SplitContainerLayoutInfo LayoutInfo { get; }

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.

C#
public Type RootContainerType { get; set; }

Methods

Applies a correction in both of the specified panels, after a successful spliter drag operation.

C#
public virtual void ApplySplitterCorrection(SplitPanel left, SplitPanel right, int dragLength)
Parameters:leftSplitPanel

The panel left (top) on the splitter.

rightSplitPanel

The panel right (bottom) on the splitter.

dragLengthint

The dragged distance.

Gets the available length left for the panel at the specified index.

C#
protected virtual int GetAvailableLength(List<SplitPanel> panels, int index, int remaining)
Parameters:panelsList<SplitPanel>indexintremainingintReturns:

int

Gets an integer value for the specified size (depending on the orientation of the current laid-out container).

C#
protected virtual int GetLength(Size size)
Parameters:sizeSizeReturns:

int

Gets a single-precision value from the provides SizeF struct.

C#
protected virtual float GetLengthF(SizeF size)
Parameters:sizeSizeFReturns:

float

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.

C#
protected virtual Size GetMinimumSize(SplitPanel panel)
Parameters:panelSplitPanelReturns:

Size

Performs the core layout logic. Updates each panel's bounds, keeping in mind restrictions like Minimum and Maximum size.

C#
protected virtual void Layout(RadSplitContainer container)
Parameters:containerRadSplitContainer

Performs the core measure logic. This is the pass which determines the desired size for each panel.

C#
protected virtual void Measure()

Entry point for the entire layout operation. Called in the OnLayout override of RadSplitContainer.

C#
public virtual void PerformLayout(RadSplitContainer container)
Parameters:containerRadSplitContainer

Updates the layout info for a pending layout operation.

C#
protected virtual void UpdateLayoutInfo(RadSplitContainer container)
Parameters:containerRadSplitContainer