New to Telerik UI for WinForms? Start a free 30-day trial

Encapsulates all size-related properties for a SplitPanel instance residing on a RadSplitContainer.

Definition

Constructors

Initializes the panel with automatic sizing, the default absolute size, and a zero minimum size.

C#
public SplitPanelSizeInfo()

Initializes this instance by copying the supported sizing values from another instance.

C#
public SplitPanelSizeInfo(SplitPanelSizeInfo source)
Parameters:sourceSplitPanelSizeInfo

The sizing information to copy.

Fields

The initial absolute panel size, used when a SplitPanelSizeInfo is created or reset.

C#
public static readonly Size DefaultAbsoluteSize

The initial minimum panel size, used when a SplitPanelSizeInfo is created or reset.

C#
public static readonly Size DefaultMinimumSize

Properties

Gets or sets the size used when size mode is Absolute.

C#
public Size AbsoluteSize { get; set; }

Gets or sets the scale factor to be used by auto-sized panels. Usually this is internally updated by a splitter resize.

C#
[Browsable(false)]
public SizeF AutoSizeScale { get; set; }

Gets the current DPI scaling.

C#
[Browsable(false)]
public SizeF DpiScale { get; }

Gets or sets the maximum size for the associated SplitPanel.

C#
public Size MaximumSize { get; set; }

Gets or sets the desired (measured) size for the owning panel. This field is internally updated by a SplitContainerLayoutStrategy upon a layout operation.

C#
[Browsable(false)]
public int MeasuredLength { get; set; }

Gets or sets the minimum size for the associated SplitPanel.

C#
public Size MinimumSize { get; set; }

Gets or sets the scale factor for relatively-sized panels.

C#
public SizeF RelativeRatio { get; set; }

Gets or sets the size mode for the owning panel.

C#
public SplitPanelSizeMode SizeMode { get; set; }

Gets or sets the amount (in pixels) applied to the size of the panel by a splitter.

C#
public Size SplitterCorrection { get; set; }

Methods

Creates a new instance and copies values using Copy(SplitPanelSizeInfo). The clone does not copy MaximumSize; when this instance uses Fill, the clone retains its default Auto mode.

C#
public SplitPanelSizeInfo Clone()
Returns:

SplitPanelSizeInfo

A new SplitPanelSizeInfo populated from this instance.

Copies the source's ratios, sizes, splitter correction, and auto-size scale. The maximum size is not copied, and SizeMode is copied only when neither instance uses Fill.

C#
public void Copy(SplitPanelSizeInfo source)
Parameters:sourceSplitPanelSizeInfo

The sizing information to copy from.

Restores the relative ratio, absolute size, splitter correction, auto-size scale, and minimum size to their defaults. The current SizeMode and MaximumSize are unchanged.

C#
public void Reset()

Uses non-default checks for MaximumSize, MinimumSize, AbsoluteSize, RelativeRatio, AutoSizeScale, and SplitterCorrection; other property names use the base serialization rule.

C#
protected override bool ShouldSerializeProperty(string propName)
Parameters:propNamestring

The property name being tested for serialization.

Returns:

bool

true when the property should be serialized.

Overrides: RadDockObject.ShouldSerializeProperty(string)