DekGenius.com
[ Team LiB ] Previous Section Next Section

FontDialogmarshal by reference, disposable

System.Windows.Forms (system.windows.forms.dll)class

This CommonDialog allows users to select a particular Font and System.Drawing.Color.

There are various properties that can permit or deny particular types of font such as AllowSimulations, AllowVectorFonts, AllowVerticalFonts, ScriptsOnly (which eliminates nontext fonts such as Wingdings) and FixedPitchOnly (which limits the list to monospaced fonts such as Courier).

In addition, there are a variety of properties to control the appearance and function of the dialog. The ShowApply property determines whether the dialog has an apply button. ShowColor enables or disables the System.Drawing.Color selector, interacting with the ShowEffects property, which determines whether the group of controls that allow you to set effects such as bold, underline, and the System.Drawing.Color, is shown.

public class FontDialog : CommonDialog {
// Public Constructors
   public FontDialog();
// Protected Static Fields
   protected static readonly object EventApply;  // =System.Object
// Public Instance Properties
   public bool AllowScriptChange{set; get; }
   public bool AllowSimulations{set; get; }
   public bool AllowVectorFonts{set; get; }
   public bool AllowVerticalFonts{set; get; }
   public Color Color{set; get; }
   public bool FixedPitchOnly{set; get; }
   public Font Font{set; get; }
   public bool FontMustExist{set; get; }
   public int MaxSize{set; get; }
   public int MinSize{set; get; }
   public bool ScriptsOnly{set; get; }
   public bool ShowApply{set; get; }
   public bool ShowColor{set; get; }
   public bool ShowEffects{set; get; }
   public bool ShowHelp{set; get; }
// Protected Instance Properties
   protected int Options{get; }
// Public Instance Methods
   public override void Reset();  // overrides CommonDialog
   public override string ToString();  // overrides System.ComponentModel.Component
// Protected Instance Methods
   protected override IntPtr HookProc(IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam);  // overrides CommonDialog
   protected virtual void OnApply(EventArgs e);
   protected override bool RunDialog(IntPtr hWndOwner);  // overrides CommonDialog
// Events
   public event EventHandler Apply;
}

Hierarchy

System.Object System.MarshalByRefObject System.ComponentModel.Component(System.ComponentModel.IComponen, System.IDisposable) CommonDialog FontDialog

    [ Team LiB ] Previous Section Next Section