Table of Contents

Method GetInteriorSize

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetInteriorSize(InteriorSizeFlags)

Calculates the interior size of the control based on the specified flags.

public virtual SizeD GetInteriorSize(PopupWindow<T>.InteriorSizeFlags flags = InteriorSizeFlags.All)

Parameters

flags PopupWindow<T>.InteriorSizeFlags

A combination of PopupWindow<T>.InteriorSizeFlags values that specify which components (e.g., padding, margin) should be included in the calculation. The default value is All, which includes all components.

Returns

SizeD

A SizeD structure representing the total interior size based on the specified flags. Returns Empty if flags is set to 0.

Remarks

The method calculates the interior size by summing the sizes of the specified components, such as padding and margin, for both the main control and its panel. Use the flags parameter to customize which components are included in the calculation.