Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

IModelCommonMemberViewItem.PredefinedValues Property

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

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v21.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

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

Property Value

Type Description
String

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

Remarks

You can specify the PredefinedValues value in the Model Editor

IModelCommonMemberViewItem.PredefinedValues

This property is considered for string type properties. End-users will be able to select either one of the predefined values, or set their own. To include a semicolon into a predefined value, type \;. If you need to include \ into a value, type \\.

Alternatively, you can specify predefined values in code by using the ModelDefaultAttribute attribute.

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

If you want to fill the predefined values list dynamically, use a custom property editor demonstrated in the following topics:

See Also