Table of Contents

Method WidthInPercentToDips

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

WidthInPercentToDips(int, double?, double?)

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

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

Parameters

widthInPercent int

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

minWidth double?

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 double?

Maximal possible width of the column.

Returns

double?