PagedDataSource.PageCount 屬性

定義

取得顯示資料來源中所有項目所需的頁面總數。

public:
 property int PageCount { int get(); };
public int PageCount { get; }
member this.PageCount : int
Public ReadOnly Property PageCount As Integer

屬性值

顯示資料來源中所有項目所需的頁面總數。

備註

PageCount使用 屬性來決定顯示資料來源中所有專案所需的頁數。

注意

DataSource如果屬性為 null ,則會傳回 0。 IsPagingEnabled如果 屬性設定為 falseDataSourceCount 屬性設定為 0 或更少,則會傳回 1。

適用於

另請參閱