.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

IModelCommonMemberViewItem.PredefinedValues Property

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

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

[ModelBrowsable(typeof(StringPropertyOnlyCalculator))]
string PredefinedValues { get; set; }
<ModelBrowsable(GetType(StringPropertyOnlyCalculator))>
Property PredefinedValues As String
[ModelBrowsable(typeof(StringPropertyOnlyCalculator))]
string PredefinedValues { get; set; }
<ModelBrowsable(GetType(StringPropertyOnlyCalculator))>
Property PredefinedValues As String
[ModelBrowsable(typeof(StringPropertyOnlyCalculator))]
string PredefinedValues { get; set; }
<ModelBrowsable(GetType(StringPropertyOnlyCalculator))>
Property PredefinedValues As String

Property Value

Type Description
String

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

Property Value

Type Description
String

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

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