DataGridViewSelectedCellCollection.Item[Int32] Egenskap

Definition

Hämtar cellen vid det angivna indexet.

public:
 property System::Windows::Forms::DataGridViewCell ^ default[int] { System::Windows::Forms::DataGridViewCell ^ get(int index); };
public System.Windows.Forms.DataGridViewCell this[int index] { get; }
member this.Item(int) : System.Windows.Forms.DataGridViewCell
Default Public ReadOnly Property Item(index As Integer) As DataGridViewCell

Parametrar

index
Int32

Indexet för att DataGridViewCell hämta från DataGridViewSelectedCellCollection.

Egenskapsvärde

Vid DataGridViewCell det angivna indexet.

Undantag

index är mindre än 0.

-eller-

index är lika med eller större än antalet celler i samlingen.

Gäller för

Se även