Class FontListBox
A ListBox that will show a list of fonts installed in the system.
Inheritance
System.Object
FontListBox
Assembly: Syncfusion.Tools.Windows.dll
public class FontListBox : ListBox, IThemeProvider, IVisualStyle
Constructors
Declaration
Properties
Gets or sets the BaseTheme name of the theme
Declaration
public string BaseThemeName { get; set; }
Property Value
Gets or sets a value indicating whether a SkinManager theme style
has been applied to the control.
Declaration
public bool CanApplyTheme { get; set; }
Property Value
Type |
Description |
System.Boolean |
The default value is true.
|
Gets or sets a value indicating whether control elements styles can be overridden by theme style settings.
Declaration
public bool CanOverrideStyle { get; set; }
Property Value
Type |
Description |
System.Boolean |
Default value is false.
|
Declaration
public int ColumnWidth { get; set; }
Property Value
Declaration
public DrawMode DrawMode { get; }
Property Value
Type |
System.Windows.Forms.DrawMode |
gets or Sets the touchmode
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Declaration
public Font Font { get; }
Property Value
Gets a value indicating whether the visual style based theme is applied to the control.
This also indicates whether the theme files are referred from external assemblies or not.
Declaration
public bool IsVisualStyleEnabled { get; }
Property Value
Type |
Description |
System.Boolean |
Return true, if the visual style based theme is applied to control. Otherwise returns false.
|
Declaration
public ListBox.ObjectCollection Items { get; }
Property Value
Type |
System.Windows.Forms.ListBox.ObjectCollection |
Gets or sets the theme color of the FontListBox
Declaration
public Color MetroColor { get; set; }
Property Value
Type |
System.Drawing.Color |
Gets or sets a value indicating whether the control is a multi column control.
Declaration
public bool MultiColumn { get; set; }
Property Value
Declaration
public MetroColorTable ScrollMetroColorTable { get; set; }
Property Value
Gets or sets the theme name of the FontListBox control.
Declaration
public string ThemeName { get; set; }
Property Value
Declaration
public FontListBoxVisualStyle ThemeStyle { get; set; }
Property Value
Gets or sets a value indicating whether the control use auto complete.
Declaration
public bool UseAutoComplete { get; set; }
Property Value
Gets or sets an advanced appearance for the FontListBox
Declaration
public FontListBox.FontListBoxStyle VisualStyle { get; set; }
Property Value
Methods
Declaration
public void ApplyScaleToControl(float scaleFactor)
Parameters
Type |
Name |
Description |
System.Single |
scaleFactor |
|
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
Type |
System.Windows.Forms.AccessibleObject |
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Gets the active theme name of the FontListBox control.
Declaration
public string GetActiveThemeName()
Returns
Type |
Description |
System.String |
Returns the active theme name.
|
Declaration
protected override void OnDrawItem(DrawItemEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.DrawItemEventArgs |
e |
|
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Fills the combo box at any time. This will be called automatically in the constructor.
Declaration
protected override void OnMeasureItem(MeasureItemEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MeasureItemEventArgs |
e |
|
Declaration
protected override void OnSelectedIndexChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Declaration
protected virtual bool ProcessAutoComplete(Keys keyData)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Keys |
keyData |
Key data
|
Returns
Type |
Description |
System.Boolean |
Key processed.
|
Declaration
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Message |
msg |
|
System.Windows.Forms.Keys |
keyData |
|
Returns
Events
Declaration
public event ThemeChangedEventHandler ThemeNameChanged
Event Type
Explicit Interface Implementations
Gets or Sets the value for the Skin Manager.
Declaration
string IVisualStyle.VisualTheme { get; set; }
Returns
Gets the name of the control.
Declaration
string IThemeProvider.ControlName { get; }
Returns
Implements