Defines the fonts listed by the SftBox.FillFontNames method and how they are shown.
Namespace: Softelvdm.SftBoxNET
Assembly: Softelvdm.SftBoxNET
[Flags] public enum FontListOptionsEnum;
<Flags> Public Enum FontListOptionsEnum
| Name | Description |
|---|---|
| None | All fonts, each name in the control's font. |
| FixedPitchOnly | Only fonts whose characters all have the same width. |
| ShowInFont | Each name is shown in its own font. |
| ShowTypeImage | Each name has an image that shows whether it is a TrueType or an OpenType font. |
Defines the fonts listed by the SftBox.FillFontNames method and how they are shown.
sftBox1.SelectedItem = sftBox1.Items[5];
sftBox2.SelectedItem = sftBox2.Items[0].Children[1];
// with the Build phase collapsed, the rows shown, all items and the outline are numbered differently
sftBox7.Items[1].Collapse(CollapseStyleEnum.All);
// the installed fonts, each name shown in its own font, with an image for TrueType and OpenType fonts
sftBox3.FillFontNames(FontListOptionsEnum.ShowInFont | FontListOptionsEnum.ShowTypeImage);
sftBox3.Text = "Segoe UI";
if (sftBox3.SelectedItem == null && sftBox3.Items.Count > 0)
sftBox3.SelectedItem = sftBox3.Items[0];
BindLookup();
FillCombo(comboSearch, typeof(SearchModeEnum), sftBox5.SearchMode);
FillCombo(comboAlignment, typeof(DropDownAlignmentEnum), sftBox1.DropDownAlignment);
SftBox1.SelectedItem = SftBox1.Items(5)
SftBox2.SelectedItem = SftBox2.Items(0).Children(1)
' with the Build phase collapsed, the rows shown, all items and the outline are numbered differently
SftBox7.Items(1).Collapse(CollapseStyleEnum.All)
' the installed fonts, each name shown in its own font, with an image for TrueType and OpenType fonts
SftBox3.FillFontNames(FontListOptionsEnum.ShowInFont Or FontListOptionsEnum.ShowTypeImage)
SftBox3.Text = "Segoe UI"
If SftBox3.SelectedItem Is Nothing AndAlso SftBox3.Items.Count > 0 Then
SftBox3.SelectedItem = SftBox3.Items(0)
End If
BindLookup()
FillCombo(ComboSearch, GetType(SearchModeEnum), SftBox5.SearchMode)See Also Classes | SftBox/NET 3.0