AddFieldToArea
AddFieldToArea(PivotFieldType, string)
将字段添加到特定区域。
public int AddFieldToArea(PivotFieldType fieldType, string fieldName)
范围 | 类型 | 描述 |
---|---|---|
fieldType | PivotFieldType | 字段区域类型。 |
fieldName | String | 基本字段中的名称。 |
返回值
特定字段中的字段位置。如果没有以它命名的字段,则返回-1。
也可以看看
- enum PivotFieldType
- class PivotTable
- 命名空间 Aspose.Cells.Pivot
- 部件 Aspose.Cells
AddFieldToArea(PivotFieldType, int)
将字段添加到特定区域。
public int AddFieldToArea(PivotFieldType fieldType, int baseFieldIndex)
范围 | 类型 | 描述 |
---|---|---|
fieldType | PivotFieldType | 字段区域类型。 |
baseFieldIndex | Int32 | 基本字段中的字段索引。 |
返回值
特定字段中的字段位置。
也可以看看
- enum PivotFieldType
- class PivotTable
- 命名空间 Aspose.Cells.Pivot
- 部件 Aspose.Cells
AddFieldToArea(PivotFieldType, PivotField)
将字段添加到特定区域。
public int AddFieldToArea(PivotFieldType fieldType, PivotField pivotField)
范围 | 类型 | 描述 |
---|---|---|
fieldType | PivotFieldType | 字段区域类型。 |
pivotField | PivotField | 基础字段中的字段。 |
返回值
特定字段中的字段位置。
也可以看看
- enum PivotFieldType
- class PivotField
- class PivotTable
- 命名空间 Aspose.Cells.Pivot
- 部件 Aspose.Cells