Class TreeTableVisibleCounter
A counter that counts objects that are marked "Visible".
Implements
Inherited Members
Namespace: Syncfusion.Maui.GridCommon.Collections
Assembly: Syncfusion.Maui.GridCommon.dll
Syntax
public class TreeTableVisibleCounter : ITreeTableCounter
Constructors
TreeTableVisibleCounter(double)
Initializes a TreeTableVisibleCounter with a specified number of visible elements.
Declaration
public TreeTableVisibleCounter(double visibleCount)
Parameters
| Type | Name | Description |
|---|---|---|
| double | visibleCount | The visible count. |
Fields
Empty
Returns an empty TreeTableVisibleCounter that represents zero visible elements.
Declaration
public static readonly TreeTableVisibleCounter Empty
Field Value
| Type |
|---|
| TreeTableVisibleCounter |
Properties
Kind
The Counter Kind.
Declaration
public virtual int Kind { get; }
Property Value
| Type |
|---|
| int |
Methods
Combine(TreeTableVisibleCounter, int)
Combines the counter values of this counter object with the values of another counter object and returns a new counter object.
Declaration
public TreeTableVisibleCounter Combine(TreeTableVisibleCounter other, int cookie)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeTableVisibleCounter | other | The other. |
| int | cookie | The cookie. |
Returns
| Type |
|---|
| TreeTableVisibleCounter |
Compare(TreeTableVisibleCounter, int)
Compares this counter with another counter. A cookie can specify a specific counter type.
Declaration
public virtual double Compare(TreeTableVisibleCounter other, int cookie)
Parameters
| Type | Name | Description |
|---|---|---|
| TreeTableVisibleCounter | other | The other. |
| int | cookie | The cookie. |
Returns
| Type |
|---|
| double |
CreateCounter()
Factory method creates a new counter object of the same type as this object.
Declaration
public virtual TreeTableVisibleCounter CreateCounter()
Returns
| Type |
|---|
| TreeTableVisibleCounter |
GetValue(int)
Returns the integer value of the counter. A cookie specifies a specific counter type.
Declaration
public virtual double GetValue(int cookie)
Parameters
| Type | Name | Description |
|---|---|---|
| int | cookie | The cookie. |
Returns
| Type |
|---|
| double |
GetVisibleCount()
Returns the visible count.
Declaration
public double GetVisibleCount()
Returns
| Type |
|---|
| double |
IsEmpty(int)
Indicates whether the counter object is empty. A cookie can specify a specific counter type.
Declaration
public virtual bool IsEmpty(int cookie)
Parameters
| Type | Name | Description |
|---|---|---|
| int | cookie | The cookie. |
Returns
| Type | Description |
|---|---|
| bool |
|
OnCombineCounters(ITreeTableCounter, ITreeTableCounter, int)
Called to combine the values of two counter objects. Results are saved back into this counter object. A cookie can filter the operation to a limited set of counter types.
Declaration
protected virtual void OnCombineCounters(ITreeTableCounter x, ITreeTableCounter y, int cookie)
Parameters
| Type | Name | Description |
|---|---|---|
| ITreeTableCounter | x | The x. |
| ITreeTableCounter | y | The y. |
| int | cookie | The cookie. |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |