Table of Contents

Method AddFontSizesAndSelect

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

AddFontSizesAndSelect(bool, float?)

Adds a list of font sizes to the associated list control and optionally selects a specified font size.

public virtual void AddFontSizesAndSelect(bool select = false, float? size = null)

Parameters

select bool

A value indicating whether the specified font size should be selected in the list control. If true, the specified font size will be selected; otherwise, no selection is made.

size float?

The font size to add and optionally select. If null, the default font size is used.

Remarks

This method populates the list control with a predefined set of font sizes and updates the current value to the specified font size or the default font size if none is provided.