.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET 5.0+

IModelMember.Size Property

Specifies the maximum number of characters that users can type in Property Editors of the current string property. You can also specify the current member’s XPMemberInfo.MappingFieldSize property (XPO only) or apply FieldSizeAttribute to it. Property Editors ignore the IModelMember.Size property if its value is more than the MappingFieldSize or FieldSizeAttribute value.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v21.2.dll

Declaration

int Size { get; set; }

Property Value

Type Description
Int32

The maximum number of characters that users can type in Property Editors of the current string property.

Remarks

This property is initialized with a value from the IMemberInfo.Size property.

To specify the maximum number of characters that users can enter into the specific Property Editor, use the IModelMemberViewItem.MaxLength property.

See Also