![]() Returns an array that contains all the FontFamily objects associated with the current graphics context. Initializes a new FontFamily in the specified FontCollection with the specified name. Initializes a new FontFamily with the specified name. Initializes a new FontFamily from the specified generic font family. For more information, see only supported on Windows. ![]() Use of this type in cross-platform apps causes compile-time warnings and run-time exceptions. NET 6 and later versions, the package, which includes this type, is only supported on Windows operating systems. ListBox1->Items->Add( oneFontFamily->Name ) įoreach ( FontFamily oneFontFamily in FontFamily.Families )įor Each oneFontFamily In FontFamily.Families System::Collections::IEnumerator^ myEnum = FontFamily::Families->GetEnumerator() įontFamily^ oneFontFamily = safe_cast(myEnum->Current) To run this example, add a ListBox named listBox1 to a form and call the PopulateListBoxWithFonts method from the form's constructor. ![]() This example is designed to be used with a Windows Form. The following code example shows all the font families in the Families property of the FontFamily class.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |