The Flags Type Editor

Introduction

This type editor provides property grid editing support for flag enumerations. When used with an enumeration having the Flags attribute, this editor allows the user to select (using checkmarks) the flags to apply.

This editor will show a drop-down list like this:

Usage

To use this editor, simply apply it using the Editor attribute to the property that you wish to use this editor. See the example below.

	/// 
	/// Gets or sets the auto complete flags
	/// 
	[Category("Behavior")]
	[Description("The auto complete flags.")]
	[Editor(typeof(NETXP.Components.FlagsEditor), typeof(System.Drawing.Design.UITypeEditor))]
	public AutoCompleteFlags Flags
	{
		get
		{
			return flags;
		}
		set
		{
			flags = value;
		}
	}