컬렉션에 새로운 행을 삽입합니다.
Namespace: Ntreev.Windows.Forms.GridAssembly: Ntreev.Windows.Forms.Grid (in Ntreev.Windows.Forms.Grid.dll) Version: 1.0.4216.32284
Syntax
C# |
---|
public void Insert( int index, Column item ) |
Visual Basic |
---|
Public Sub Insert ( _ index As Integer, _ item As Column _ ) |
Visual C++ |
---|
public: void Insert( int index, Column^ item ) |
Parameters
- index
- Type: System..::..Int32
삽입할 위치를 나타냅니다.
- item
- Type: Ntreev.Windows.Forms.Grid..::..Column
[Missing <param name="item"/> documentation for "M:Ntreev.Windows.Forms.Grid.ColumnCollection.Insert(System.Int32,Ntreev.Windows.Forms.Grid.Column)"]
Remarks
일반적으로 데이터 소스와 바인딩 되지 않는 행을 삽입 하기위해 사용합니다.
사용자는 Column형태의 인스턴스를 새로 생성해 삽입 하거나, Remove(Column)등의 의해 컬렉션에서 제거된 행을 다시 삽입할 수 있습니다.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | index가 0보다 작거나, Count보다 클 경우 |
System..::..ArgumentNullException | 매개변수 item의 값이 null일때 |
System..::..ArgumentException | 추가할 행이 이미 존재하거나, 같은 이름을 가진 행이 컬렉션에 이미 존재하는 경우 |