expressappframework-devexpress-dot-expressapp-dot-model-2a3b84f4.md
Specifies default settings that are considered when generating the Application Model node related to the target.
Namespace : DevExpress.ExpressApp.Model
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Interface, Inherited = true, AllowMultiple = true)]
public sealed class ModelDefaultAttribute :
Attribute
<AttributeUsage(AttributeTargets.Class Or AttributeTargets.Property Or AttributeTargets.Field Or AttributeTargets.Interface, Inherited:=True, AllowMultiple:=True)>
Public NotInheritable Class ModelDefaultAttribute
Inherits Attribute
The PropertyName parameter specifies the property name, and the PropertyValue specifies the string representation of the default value. Refer to the following topics to see available properties:
The code below sets the BOModel | DemoTask node’s Caption property to “Task” and ImageName - to “Tasks”. If you customize this value in the Model Editor and later reset this customization, the values will be “Task” and “Tasks” again.
using DevExpress.ExpressApp.Model;
// ...
[ModelDefault("Caption", "Task"), ModelDefault("ImageName", "Tasks")]
public class DemoTask : Task {
// ...
}
Object Attribute ModelDefaultAttribute
See Also