Table of Contents

Class ViewPropertiesCollection

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

A collection of ViewProperty objects.

[ListBindable(BindableSupport.No)]
public sealed class ViewPropertiesCollection : CollectionBase, IList, ICollection, IEnumerable
Inheritance
ViewPropertiesCollection
Implements
Inherited Members

Constructors

ViewPropertiesCollection(XPView)

Initializes a new instance of the ViewPropertiesCollection class.

public ViewPropertiesCollection(XPView owner)

Parameters

owner XPView

An XPView object that represents the view which owns this collection.

Properties

this[CriteriaOperator]

Returns an item with the specified expression.

public ViewProperty this[CriteriaOperator expression] { get; }

Parameters

expression CriteriaOperator

A DevExpress.Data.Filtering.CriteriaOperator descendant that contains the expression used to calculate the values in a column.

Property Value

ViewProperty

A ViewProperty object with the specified expression.

this[int]

Provides indexed access to the elements in the collection.

public ViewProperty this[int index] { get; }

Parameters

index int

An integer value which specifies the zero-based index which identifies an element.

Property Value

ViewProperty

A ViewProperty object which represents the item in the collection.

this[string]

Returns an item with the specified name.

public ViewProperty this[string name] { get; }

Parameters

name string

A string containing the name of the required ViewProperty.

Property Value

ViewProperty

A ViewProperty with the specified name.

Methods

Add(ViewPropertiesCollection)

Adds the objects in the specified collection to the current collection.

public void Add(ViewPropertiesCollection sortProperties)

Parameters

sortProperties ViewPropertiesCollection

A ViewPropertiesCollection object which represents the collection whose elements are appended to the current collection.

Add(ViewProperty)

Adds the specified object to the collection.

public void Add(ViewProperty sortProperty)

Parameters

sortProperty ViewProperty

A ViewProperty object to add to the collection.

AddRange(ViewProperty[])

Adds an array of ViewProperty objects to the collection.

public void AddRange(ViewProperty[] sortProperties)

Parameters

sortProperties ViewProperty[]

An array of ViewProperty objects to add to the collection.

OnInsertComplete(int, object)

protected override void OnInsertComplete(int index, object value)

Parameters

index int
value object

OnRemoveComplete(int, object)

protected override void OnRemoveComplete(int index, object value)

Parameters

index int
value object