EnumFlagsEditorTEnum Class

Provides a user interface for selecting the values of a Enum with or without the FlagsAttribute attribute class specified.

Definition

Namespace: DevCase.UI.TypeEditors
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public class EnumFlagsEditor<TEnum> : UITypeEditor
where TEnum : struct, new()
Inheritance
Object    UITypeEditor    EnumFlagsEditorTEnum

Type Parameters

TEnum
The type of the Enum.

Constructors

EnumFlagsEditorTEnum Initializes a new instance of the EnumFlagsEditorTEnum class.

Properties

IsDropDownResizable Gets a value indicating whether drop-down editors should be resizable by the user.
(Inherited from UITypeEditor)

Methods

EditValue(IServiceProvider, Object) Edits the value of the specified object using the editor style indicated by the GetEditStyle method.
(Inherited from UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object) Edits the specified object's value using the editor style indicated by the GetEditStyle method.
(Overrides UITypeEditorEditValue(ITypeDescriptorContext, IServiceProvider, Object))
Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetEditStyle Gets the editor style used by the EditValue(IServiceProvider, Object) method.
(Inherited from UITypeEditor)
GetEditStyle(ITypeDescriptorContext) Gets the editor style used by the EditValue(IServiceProvider, Object) method.
(Overrides UITypeEditorGetEditStyle(ITypeDescriptorContext))
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetPaintValueSupported Indicates whether this editor supports painting a representation of an object's value.
(Inherited from UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext) Indicates whether the specified context supports painting a representation of an object's value within the specified context.
(Inherited from UITypeEditor)
GetType Gets the Type of the current instance.
(Inherited from Object)
PaintValue(PaintValueEventArgs) Paints a representation of the value of an object using the specified PaintValueEventArgs.
(Inherited from UITypeEditor)
PaintValue(Object, Graphics, Rectangle) Paints a representation of the value of the specified object to the specified canvas.
(Inherited from UITypeEditor)
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also

Reference

UITypeEditor