Skip to main content
.NET 8.0+

IModelCommonMemberViewItem.PredefinedValues Property

Specifies predefined values for the current Property Editor, separated by semicolons.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[ModelBrowsable(typeof(StringPropertyOnlyCalculator))]
string PredefinedValues { get; set; }

Property Value

Type Description
String

A string that specifies predefined values for the current Property Editor, separated by semicolons.

Remarks

You can specify a PredefinedValues value in the Model Editor

IModelCommonMemberViewItem.PredefinedValues

Use this property with string type properties. Users can select one of predefined values or set their own value. To include a semicolon in a predefined value, type ;. If you want to include \ in a value, type \\.

Alternatively, you can use the ModelDefaultAttribute attribute to specify predefined values in code.

[ModelDefault("PredefinedValues",
    "Predefined Value 1;Predefined Value 2;Predefined Value 3;Predefined Value 4")]
public virtual string StringWithPredefinedValuesProperty { get; set; }

If you want to fill the predefined values list dynamically, use a custom property editor demonstrated in the following section: Supply Predefined Values for the String Property Editor Dynamically.

See Also