[]
        
(Showing Draft Content)

C1.WPF.PropertyGrid.PropertyAttribute

PropertyAttribute Class

Used to provide configuration information for the C1PropertyGrid.

Inheritance
PropertyAttribute
Namespace: C1.WPF.PropertyGrid
Assembly: C1.WPF.PropertyGrid.dll
Syntax
public class PropertyAttribute : MemberAttribute

Constructors

Name Description
PropertyAttribute()

Initializes a new instance of the PropertyAttribute class.

PropertyAttribute(PropertyAttribute)

Initializes a new instance of the PropertyAttribute class.

Properties

Name Description
DefaultValue

Gets or sets the default value for the property.

Description

Gets or sets a text, such as a tool tip, that is displayed to users to help them understand a member.

DisplayIndex

Gets or sets the index that will be used to sort the properties.

Editor

Gets or sets the current editor selected for the property.

Format

Gets or sets a string representing the desired Format for the property value. e.g. a specific numeric format to use in the numeric editor associated to the property).

IsAttached

Gets or sets a value indicating whether the property is attached.

IsDefaultValue

Gets whether the current is the default value.

MaximumValue

Gets or sets the maximum allowed value for the property (applies only to numeric properties).

MinimumValue

Gets or sets the minimum allowed value for the property (applies only to numeric properties).

PropertyBinding

Gets or sets the Binding to use when the property is bound to its associated editor.

PropertyInfo

Gets the PropertyInfo corresponding to the current property.

ReadOnly

Gets or sets a value indicating whether the property value can be edited.

Methods

Name Description
GetErrors()

Gets the errors in the group.

GetValue<T>(IValueConverter)

Gets the current value.

IsAssignableFrom(Type)

Gets whether the group can be assigned from the specified type.

SetValue<T>(T, IValueConverter)

Sets the specified value.

Events

Name Description
ValueChanged

Occurs when the value of the property changed.