FontEditor Class
Provides a user interface to select and configure a Font object.
For a list of all members of this type, see FontEditor Members.
System.Object
System.Drawing.Design.UITypeEditor
System.Drawing.Design.FontEditor
[Visual Basic] Public Class FontEditor Inherits UITypeEditor [C#] public class FontEditor : UITypeEditor [C++] public __gc class FontEditor : public UITypeEditor [JScript] public class FontEditor extends UITypeEditor
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Remarks
FontEditor is a UITypeEditor that provides a user interface for choosing and configuring a Font from a list of available fonts.
Example
[Visual Basic, C#, C++] The following code example uses an EditorAttribute to associate the System.Drawing.FontEditor with a property.
[Visual Basic] <EditorAttribute(GetType(System.Drawing.Design.FontEditor), GetType(System.Drawing.Design.UITypeEditor))> _ Public Property testFont() As Font Get Return font End Get Set font = value End Set End Property Private font As Font [C#] [EditorAttribute(typeof(System.Drawing.Design.FontEditor), typeof(System.Drawing.Design.UITypeEditor))] public Font testFont { get { return font; } set { font = value; } } private Font font; [C++] public: [EditorAttribute(__typeof(System::Drawing::Design::FontEditor), __typeof(System::Drawing::Design::UITypeEditor))] __property System::Drawing::Font* get_testFont() { return font; } [EditorAttribute(__typeof(System::Drawing::Design::FontEditor), __typeof(System::Drawing::Design::UITypeEditor))] __property void set_testFont(System::Drawing::Font* value) { font = value; } private: Font* font;
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Namespace: System.Drawing.Design
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System.Drawing.Design (in System.Drawing.Design.dll)
See Also
FontEditor Members | System.Drawing.Design Namespace | UITypeEditor