UnwrappedCollectionEditorT Class

Provides a user interface that unwraps the items of a collection from the default "Value" property that is shown in a standard CollectionEditor.

Use UnwrappedCollectionEditorT if you want to show a collection whose items are types with properties that have category attributes (CategoryAttribute) applied.

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 sealed class UnwrappedCollectionEditor<T> : CollectionEditor
Inheritance
Object    UITypeEditor    CollectionEditor    UnwrappedCollectionEditorT

Type Parameters

T
The type.

Remarks

Credits for Reza Aghaei's code: https://stackoverflow.com/a/53890224/1248295

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Constructors

UnwrappedCollectionEditorT Initializes a new instance of the UnwrappedCollectionEditorT 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 value of the specified object using the specified service provider and context.
(Overrides CollectionEditorEditValue(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 edit style used by the EditValue(ITypeDescriptorContext, IServiceProvider, Object) method.
(Inherited from CollectionEditor)
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