Class
SplitContainerLayoutStrategy

Defines the layout strategy for a RadSplitContainer.

Definition

Namespace:Telerik.WinControls.UI.Docking

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class SplitContainerLayoutStrategy

Inheritance: objectSplitContainerLayoutStrategy

Constructors

SplitContainerLayoutStrategy()

Declaration

cs-api-definition
public SplitContainerLayoutStrategy()

Properties

LayoutInfo

Gets the layout info associated with this layout strategy.

Declaration

cs-api-definition
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

cs-api-definition
public Type RootContainerType { get; set; }

Property Value

Type

Methods

ApplySplitterCorrection(SplitPanel, SplitPanel, int)

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

Declaration

cs-api-definition
public virtual void ApplySplitterCorrection(SplitPanel left, SplitPanel right, int dragLength)

Parameters

left

SplitPanel

The panel left (top) on the splitter.

right

SplitPanel

The panel right (bottom) on the splitter.

dragLength

int

The dragged distance.

GetAvailableLength(List<SplitPanel>, int, int)

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

Declaration

cs-api-definition
protected virtual int GetAvailableLength(List<SplitPanel> panels, int index, int remaining)

Parameters

panels

List<SplitPanel>

index

int

remaining

int

Returns

int

GetLength(Size)

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

Declaration

cs-api-definition
protected virtual int GetLength(Size size)

Parameters

size

Size

Returns

int

GetLengthF(SizeF)

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

Declaration

cs-api-definition
protected virtual float GetLengthF(SizeF size)

Parameters

size

SizeF

Returns

float

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

cs-api-definition
protected virtual Size GetMinimumSize(SplitPanel panel)

Parameters

panel

SplitPanel

Returns

Size

Layout(RadSplitContainer)

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

Declaration

cs-api-definition
protected virtual void Layout(RadSplitContainer container)

Parameters

container

RadSplitContainer

Measure()

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

Declaration

cs-api-definition
protected virtual void Measure()

PerformLayout(RadSplitContainer)

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

Declaration

cs-api-definition
public virtual void PerformLayout(RadSplitContainer container)

Parameters

container

RadSplitContainer

UpdateLayoutInfo(RadSplitContainer)

Updates the layout info for a pending layout operation.

Declaration

cs-api-definition
protected virtual void UpdateLayoutInfo(RadSplitContainer container)

Parameters

container

RadSplitContainer