Class DictionaryPropertyGridAdapter
Instance for dynamic custom type information for an object
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class DictionaryPropertyGridAdapter : ICustomTypeDescriptor
Constructors
DictionaryPropertyGridAdapter(IDictionary)
Initializes a new instance of the DictionaryPropertyGridAdapter class.
Declaration
public DictionaryPropertyGridAdapter(IDictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.IDictionary | dictionary |
Methods
GetAttributes()
Returns a collection of custom attributes for this instance of a component.
Declaration
public AttributeCollection GetAttributes()
Returns
Type | Description |
---|---|
System.ComponentModel.AttributeCollection | An System.ComponentModel.AttributeCollection containing the attributes for this object |
GetClassName()
Returns the class name of this instance of a component.
Declaration
public string GetClassName()
Returns
Type | Description |
---|---|
System.String | The class name of the object, or null if the class does not have a name. |
GetComponentName()
Returns the name of this instance of a component.
Declaration
public string GetComponentName()
Returns
Type | Description |
---|---|
System.String | The name of the object, or null if the object does not have a name. |
GetConverter()
Returns a type converter for this instance of a component.
Declaration
public TypeConverter GetConverter()
Returns
Type | Description |
---|---|
System.ComponentModel.TypeConverter | A System.ComponentModel.TypeConverter that is the converter for this object, or null if there is no System.ComponentModel.TypeConverter for this object. |
GetDefaultEvent()
Returns the default event for this instance of a component.
Declaration
public EventDescriptor GetDefaultEvent()
Returns
Type | Description |
---|---|
System.ComponentModel.EventDescriptor | An System.ComponentModel.EventDescriptor that represents the default event for this object, or null if this object does not have events. |
GetDefaultProperty()
Returns the default property for this instance of a component.
Declaration
public PropertyDescriptor GetDefaultProperty()
Returns
Type | Description |
---|---|
System.ComponentModel.PropertyDescriptor | A System.ComponentModel.PropertyDescriptor that represents the default property for this object, or null if this object does not have properties. |
GetEditor(Type)
Returns an editor of the specified type for this instance of a component.
Declaration
public object GetEditor(Type editorBaseType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | editorBaseType | A System.Type that represents the editor for this object. |
Returns
Type | Description |
---|---|
System.Object | An System.Object of the specified type that is the editor for this object |
GetEvents(Attribute[])
Returns the events for this instance of a component using the specified attribute array as a filter.
Declaration
public EventDescriptorCollection GetEvents(Attribute[] attributes)
Parameters
Type | Name | Description |
---|---|---|
System.Attribute[] | attributes | An array of type System.Attribute that is used as a filter. |
Returns
Type | Description |
---|---|
System.ComponentModel.EventDescriptorCollection | An System.ComponentModel.EventDescriptorCollection that represents the filtered events for this component instance. |
GetProperties(Attribute[])
Returns the properties for this instance of a component using the attribute array as a filter.
Declaration
public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
Parameters
Type | Name | Description |
---|---|---|
System.Attribute[] | attributes | An array of type System.Attribute that is used as a filter. |
Returns
Type | Description |
---|---|
System.ComponentModel.PropertyDescriptorCollection | A System.ComponentModel.PropertyDescriptorCollection that represents the filtered properties for this component instance. |
GetPropertyOwner(PropertyDescriptor)
Returns an object that contains the property described by the specified property descriptor.
Declaration
public object GetPropertyOwner(PropertyDescriptor pd)
Parameters
Type | Name | Description |
---|---|---|
System.ComponentModel.PropertyDescriptor | pd | A System.ComponentModel.PropertyDescriptor that represents the property whose owner is to be found. |
Returns
Type | Description |
---|---|
System.Object | An System.Object that represents the owner of the specified property. |