ITypeInfo.DefaultMember Property
Returns metadata on the current type’s default member.
Namespace: DevExpress.ExpressApp.DC
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
IMemberInfo | The metadata on the current type’s default member. |
Remarks
XAF checks if a business class contains the following properties and sets DefaultMember to the first found property:
- The property specified by the class’s DefaultPropertyAttribute or XafDefaultPropertyAttribute.
- A property whose name matches or contains one of the DevExpress.ExpressApp.DC.TypeInfo.DefaultPropertyNames values (Name, Title, Subject, Caption, Description, Benennung, Nombre, Nome). These values are arranged in priority order. For example, if a business class has both ObjectName and Description properties, DefaultMember returns ObjectName.
- The property specified by the class’s FriendlyKeyPropertyAttribute.
- The property specified by the class’s KeyAttribute.
The following behavior is specific to the default members:
- Lookup Property Editors display default member values.
- Default members take part in form caption generation.
- In List Views, reference property columns display values of a referenced object’s default member. The FullTextSearch Action considers these values when it filters objects.
- List Views display the default member column first.
See Also