ListEditorAttribute(Type, Boolean) Constructor

Initializes a new instance of the ListEditorAttribute.

Namespace: DevExpress.ExpressApp.Editors

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public ListEditorAttribute(
    Type listElementType,
    bool isDefault
)
Public Sub New(
    listElementType As Type,
    isDefault As Boolean
)

Parameters

Type Name Description
Type listElementType

A Type object specifying the type of objects for which the target List Editor is designed. This parameter value is used to initialize the ListEditorAttribute.ListElementType property.

Boolean isDefault

true if the target List Editor should be used for the objects of the specified type by default; otherwise, false. This parameter value is used to initialize the ListEditorAttribute.IsDefault property.

Use this constructor when you want your List Editor to be automatically set for objects of a particular data type. In this instance, pass the required object type as the first attribute parameter; and true as the second attribute parameter. Note that your List Editor might not be set automatically if there is another List Editor with the same parameters.

If you implement an extra List Editor for a particular object type, but you do not want it to be automatically set for objects of this data type, pass the required object type as the first attribute parameter; and false as a the second attribute parameter. In this instance, your List Editor will be added to the list of editors available for List Views of the specified data type.

See Also