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

Stores a measured string width and a count used to estimate visibility during best-fit calculation. Counts are initially grouped by exact width and then accumulated across widths by the best-fit algorithm.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class WidthCountPair

Inheritance: objectWidthCountPair

Constructors

Initializes a width/count entry used to aggregate matching measured strings.

C#
public WidthCountPair(int width, int count)
Parameters:widthint

The measured string width in pixels.

countint

The initial count associated with the measured width.

Properties

Gets or sets the count associated with this width; best-fit calculation may accumulate counts from narrower widths.

C#
public int Count { get; set; }

Gets or sets the measured string width in pixels.

C#
public int Width { get; set; }