DataGridViewCellCollection.Item[] 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
제공된 위치에서 항목을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다.
오버로드
| Name | Description |
|---|---|
| Item[Int32] |
제공된 인덱스 위치에 있는 셀을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다. |
| Item[String] |
제공된 이름을 가진 열의 셀을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다. |
Item[Int32]
제공된 인덱스 위치에 있는 셀을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다.
public:
property System::Windows::Forms::DataGridViewCell ^ default[int] { System::Windows::Forms::DataGridViewCell ^ get(int index); void set(int index, System::Windows::Forms::DataGridViewCell ^ value); };
public System.Windows.Forms.DataGridViewCell this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.DataGridViewCell with get, set
Default Public Property Item(index As Integer) As DataGridViewCell
매개 변수
- index
- Int32
가져올 셀의 인덱스(0부터 시작)입니다.
속성 값
DataGridViewCell 지정된 인덱스로 저장된 인덱스입니다.
예외
이 속성을 설정할 때 지정한 값은 .입니다 null.
추가 정보
적용 대상
Item[String]
제공된 이름을 가진 열의 셀을 가져오거나 설정합니다. C#에서 이 속성은 클래스의 인덱서 DataGridViewCellCollection 입니다.
public:
property System::Windows::Forms::DataGridViewCell ^ default[System::String ^] { System::Windows::Forms::DataGridViewCell ^ get(System::String ^ columnName); void set(System::String ^ columnName, System::Windows::Forms::DataGridViewCell ^ value); };
public System.Windows.Forms.DataGridViewCell this[string columnName] { get; set; }
member this.Item(string) : System.Windows.Forms.DataGridViewCell with get, set
Default Public Property Item(columnName As String) As DataGridViewCell
매개 변수
- columnName
- String
셀을 얻거나 설정할 열의 이름입니다.
속성 값
DataGridViewCell 지정된 이름의 열에 저장된 항목입니다.
예외
columnName 컨트롤에 있는 열의 이름과 일치하지 않습니다.
이 속성을 설정할 때 지정한 값은 .입니다 null.