ListViewPagedDataSource.Count Propriedade

Definição

Obtém o número de itens que serão usados da fonte de dados para a página atual.Gets the number of items that will be used from the data source for the current page.

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

Valor da propriedade

Int32

O número de itens que serão usados da fonte de dados para a página atual.The number of items that will be used from the data source for the current page.

Implementações

Comentários

Use a Count propriedade para determinar o número de itens que serão usados da fonte de dados.Use the Count property to determine the number of items that will be used from the data source. O valor retornado é determinado pelos seguintes critérios:The value returned is determined by the following criteria:

  • Se a página atual não for a última página e a MaximumRows propriedade for definida como um valor maior ou igual a 0, o valor da MaximumRows propriedade será retornado.If the current page is not the last page and the MaximumRows property is set to a value that is greater than or equal to 0, the value of the MaximumRows property is returned.

  • Se a página atual não for a última página e a MaximumRows propriedade for definida como um valor menor que 0, o valor da DataSourceCount propriedade será subtraído do valor da StartRowIndex propriedade antes de ser retornado.If the current page is not the last page and the MaximumRows property is set to a value that is less than 0, the value of the DataSourceCount property is subtracted from the value of the StartRowIndex property before it is returned.

  • Se a página atual for a última página, o valor da DataSourceCount propriedade será subtraído do valor da StartRowIndex propriedade antes de ser retornado.If the current page is the last page, the value of the DataSourceCount property is subtracted from the value of the StartRowIndex property before it is returned.

  • Se a DataSource propriedade for null , 0 será retornado.If the DataSource property is null, 0 is returned.

Aplica-se a

Confira também