public sealed class UnwrappedCollectionEditor<T> : CollectionEditor
Public NotInheritable Class UnwrappedCollectionEditor(Of T)
Inherits CollectionEditor
Dim instance As UnwrappedCollectionEditor(Of T)
generic<typename T>
public ref class UnwrappedCollectionEditor sealed : public CollectionEditor
[<SealedAttribute>]
type UnwrappedCollectionEditor<'T> =
class
inherit CollectionEditor
end
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
Public NotInheritable Class TestClass
<Editor(GetType(UnwrappedCollectionEditor(Of TestItem)), GetType(UITypeEditor))>
<TypeConverter(GetType(CollectionEditor))>
Public ReadOnly Property TestCollection As ReadOnlyCollection(Of TestItem)
Get
Dim collection As New List(Of TestItem)
For i As Integer = 0 To 10
collection.Add(New TestItem())
Next
Return collection.AsReadOnly()
End Get
End Property
Public Sub New()
End Sub
End Class
Public NotInheritable Class TestItem
<Category("Category 1")>
Public ReadOnly Property TestProperty1 As String = "Test"
<Category("Category 2")>
Public ReadOnly Property TestProperty2 As String = "Test"
<Category("Category 3")>
Public ReadOnly Property TestProperty3 As String = "Test"
Public Sub New()
End Sub
End Class
' Then, in another part of your source-code you will show the collection in a PropertyGrid control...:
Dim obj As New TestClass()
Me.PropertyGrid1.SelectedObject = obj
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
UnwrappedCollectionEditorT | Initializes a new instance of the UnwrappedCollectionEditorT class. |
IsDropDownResizable | Gets a value indicating whether drop-down editors should be resizable by the user. (Inherited from UITypeEditor) |
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) |
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) |