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

ServerViewPropertiesCollection.AddRange(ServerViewProperty[]) Method

Adds an array of ServerViewProperty objects to the ServerViewPropertiesCollection.

Namespace: DevExpress.Xpo

Assembly: DevExpress.Xpo.v21.1.dll

NuGet Package: DevExpress.Xpo

Declaration

public void AddRange(
    ServerViewProperty[] properties
)

Parameters

Name Type Description
properties ServerViewProperty[]

A array of ServerViewProperty objects to add to the collection.

Remarks

Examples

The following example demonstrates how to populate a server view’s XPServerModeView.Properties collection.

using DevExpress.Xpo;
// ...
xpServerModeView1.Properties.AddRange(new ServerViewProperty[] {
  new ServerViewProperty("Name", SortDirection.None, "[Name]"),
  new ServerViewProperty("CompanyName", SortDirection.None, "[Customer.CompanyName]"),
  new ServerViewProperty("Payment", SortDirection.None, "[Payments].Sum([Amount])"),
  new ServerViewProperty("EmployeeFullName", SortDirection.None, "[Employee.FirstName] + ' ' + 
    [Employee.LastName]")});

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AddRange(ServerViewProperty[]) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also