Creates a new PivotTableField of the appropriate type in a FieldCollection

 public PivotTableField CreateField(SourceField field)
Public Function CreateField(ByVal field As SourceField) As PivotTableFIeld

The SourceField to build the PivotTableField from.

a new PivotTableField.

The name of a field defaults to the name of the SourceField unless the field is a DataField, or a field with that name already exists in the table. All DataFields will have a unique number appended to the end. If a DataField name was changed later to be the name of the SourceField, a RowLabel, ColumnLabel, or PageField created from the same SourceField will have a unique number appended to the end.