DataViewPropertyDescriptor Class

Definition

Represents a dynamic property for a node in a data view hierarchy.

public ref class DataViewPropertyDescriptor : System::ComponentModel::PropertyDescriptor
public class DataViewPropertyDescriptor : System.ComponentModel.PropertyDescriptor
type DataViewPropertyDescriptor = class
    inherit PropertyDescriptor
Public Class DataViewPropertyDescriptor
Inherits PropertyDescriptor
Inheritance
DataViewPropertyDescriptor

Constructors

DataViewPropertyDescriptor(PropertyDescriptor)

Initializes a new instance of the DataViewPropertyDescriptor class with the property descriptor object.

DataViewPropertyDescriptor(PropertyDescriptor, Attribute[])

Initializes a new instance of the DataViewPropertyDescriptor class with the property descriptor object and an array of attributes.

DataViewPropertyDescriptor(String)

Initializes a new instance of the DataViewPropertyDescriptor class with the property name.

DataViewPropertyDescriptor(String, Attribute[])

Initializes a new instance of the DataViewPropertyDescriptor class with the property name and an array of attributes.

DataViewPropertyDescriptor(String, String)

Initializes a new instance of the DataViewPropertyDescriptor class with the property name and a property display name.

DataViewPropertyDescriptor(String, String, String)

Initializes a new instance of the DataViewPropertyDescriptor class with the property name, the property display name, and a category name.

DataViewPropertyDescriptor(String, String, String, String)

Initializes a new instance of the DataViewPropertyDescriptor class with the property name, another version of the property name for display purposes, a category name, and a description.

DataViewPropertyDescriptor(String, String, String, String, Boolean)

Initializes a new instance of the DataViewPropertyDescriptor class with the property name, another version of the property name for display purposes, a category name, and a description.

Properties

Attributes

Gets the collection of attributes associated with the current property descriptor.

Category

Gets the category from the CategoryAttribute of the current property descriptor.

ComponentType

Gets the type of the component the property is bound to.

Converter

Gets the type converter for the current property descriptor.

Description

Gets the description from the DescriptionAttribute of the current property descriptor.

IsReadOnly

Gets a value indicating whether the current property descriptor is read-only.

Name

Gets the property name.

NameHashCode

Gets the hash code of the property name.

PropertyType

Gets the type of the property.

Methods

CanResetValue(Object)

Indicates whether the value of the property can be reset for the specified component.

GetChildProperties(Object, Attribute[])

Returns a PropertyDescriptorCollection for a given component, using a specified array of attributes as a filter.

GetValue(Object)

Gets the current property value for the specified component.

ResetValue(Object)

Resets the property value of the specified component to the default value.

SetAttribute(Attribute)

Adds the specified attribute to this property's attributes list.

SetAttributes(Attribute[])

Adds the specified attributes to this property's attributes list.

SetCategory(String)

Sets the category attribute, using the specified category value.

SetComponentType(Type)

Sets the component type to the specified type.

SetConverterType(String)

Adds a TypeConverterAttribute, using the specified type name as the data converter for the property descriptor.

SetConverterType(Type)

Adds a TypeConverterAttribute, using the specified type as the data converter for the property descriptor.

SetDescription(String)

Sets the description attribute, using the specified description value.

SetDisplayName(String)

Sets the display name attribute, using the specified display name value.

SetIsBrowsable(Boolean)

Adds a BrowsableAttribute corresponding to the specified Boolean value that indicates whether the property can be modified at design time in a Properties window.

SetIsLocalizable(Boolean)

Adds a LocalizableAttribute corresponding to the specified Boolean value that indicates whether the property should be localized.

SetIsReadOnly(Boolean)

Adds a ReadOnlyAttribute corresponding to the specified Boolean value that indicates whether the property is read-only.

SetName(String)

Sets the property name.

SetPropertyType(Type)

Sets the property type to the specified type.

SetValue(Object, Object)

Sets the property value for the specified component to a new value.

ShouldSerializeValue(Object)

Indicates whether the property value of the specified component should be serialized.

Applies to