Table of Contents

Method WidthInPercentToDips

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

WidthInPercentToDips(int, float?, float?)

Converts column width in percent (0..100) of the owner control's width to real width in device-independent units. If ListView is not assigned returns null.

public virtual float? WidthInPercentToDips(int widthInPercent, float? minWidth = null, float? maxWidth = null)

Parameters

widthInPercent int

The column width in percent of the owner control's width.

minWidth float?

Minimal possible width of the column. If negative value is specified, minimal possible width is calculated from the width of the column title's text plus absolute value of the minWidth.

maxWidth float?

Maximal possible width of the column.

Returns

float?