See Also

Series Class  | Series Members

Language

Visual Basic

C#

Show All

See Also Languages dotnetCHARTING Send comments on this topic.

TotalElements Property

Return the total number of elements in the elements collection. This property usually used in conjunction with Limit.

[Visual Basic]
Public ReadOnly Property TotalElements As Integer
[C#]
public int TotalElements {get;}

Example

[C#] 

int pageSize=3; 
int totalPage = Chart.Total%pageSize==0?Chart.Total/pageSize:(Chart.Total/pageSize)+1; 
if(totalPage>currentPage) 

//Display "Next" button. 
}

[Visual Basic] 

Dim pageSize As Integer = 3
Dim totalPage As Integer = Chart.Total / pageSize;
If Chart.Total Mod pageSize > 0 Then
totalPage = totalPage + 1)
End If
If totalPage > currentPage Then
'Display "Next" button.
End If

See Also

Series Class  | Series Members

 

 


2002 - 2005 Webavail Productions Inc. & Corporate Web Solutions Ltd.. All Rights Reserved.