Class PivotItem

Class PivotItem

Namespace: Aspose.Cells.Pivot
Assembly: Aspose.Cells.dll (25.2.0)

Represents a item in a PivotField report.

public class PivotItem

Inheritance

objectPivotItem

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

Index

Gets the index of the pivot item in cache field.

public int Index { get; set; }

Property Value

int

IsCalculatedItem

Indicates whether this pivot item is a calculated formula item.

public bool IsCalculatedItem { get; }

Property Value

bool

IsDetailHidden

Gets and sets whether the detail of this pivot item is hidden.

public bool IsDetailHidden { get; set; }

Property Value

bool

IsHidden

Gets and Sets whether the pivot item is hidden.

public bool IsHidden { get; set; }

Property Value

bool

IsMissing

Indicates whether the item is removed from the data source.

public bool IsMissing { get; }

Property Value

bool

Remarks

True means this value has benn removed from the data source.

Name

Gets the name of the pivot item.

public string Name { get; set; }

Property Value

string

Position

Specifying the position index in all the PivotItems,not the PivotItems under the same parent node.

public int Position { get; set; }

Property Value

int

PositionInSameParentNode

Specifying the position index in the PivotItems under the same parent node.

public int PositionInSameParentNode { get; set; }

Property Value

int

Value

Gets the value of the pivot item

public object Value { get; }

Property Value

object

Methods

GetDateTimeValue()

Gets the date time value of the pivot item If the value is null ,it will return DateTime.MinValue

public DateTime GetDateTimeValue()

Returns

DateTime

GetDoubleValue()

Gets the double value of the pivot item If the value is null or not number ,it will return 0

public double GetDoubleValue()

Returns

double

GetFormula()

Gets the formula of this calculated item. Only works when this item is calculated item.

public string GetFormula()

Returns

string

GetStringValue()

Gets the string value of the pivot item If the value is null, it will return ""

public string GetStringValue()

Returns

string

Move(int, bool)

Moves the item up or down

public void Move(int count, bool isSameParent)

Parameters

count int

The number of moving up or down. Move the item up if this is less than zero; Move the item down if this is greater than zero.

isSameParent bool

Specifying whether moving operation is in the same parent node or not