Back to Devexpress

PivotDataFieldCollection.Item[String] Property

officefileapi-devexpress-dot-spreadsheet-dot-pivotdatafieldcollection-dot-item-x28-system-dot-string-x29.md

latest2.5 KB
Original Source

PivotDataFieldCollection.Item[String] Property

Provides access to an individual data field in the collection by its name.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
PivotDataField this[string name] { get; }
vb
ReadOnly Property Item(name As String) As PivotDataField

Parameters

NameTypeDescription
nameString

A string that specifies the name of the data field to be obtained. This value matches the value of the PivotDataField.Name property.

|

Property Value

TypeDescription
PivotDataField

A PivotDataField object that is a data field with the specified name.

|

Remarks

Use the Item property to obtain a specific data field in the collection by specifying its name. When searching, the name parameter value is compared to the PivotDataField.Name property of the PivotDataField objects contained in the collection. If no matches are found, this method returns null ( Nothing in Visual Basic).

See Also

Pivot Tables in Spreadsheet Documents

Pivot Table API

How to: Create a Pivot Table

PivotDataFieldCollection Interface

PivotDataFieldCollection Members

DevExpress.Spreadsheet Namespace