새로운 행의 인스턴스를 생성하고 컬렉션에 삽입합니다.
Namespace: Ntreev.Windows.Forms.GridAssembly: Ntreev.Windows.Forms.Grid (in Ntreev.Windows.Forms.Grid.dll) Version: 1.0.4216.32284
Syntax
C# |
---|
public Column InsertNew( int index, string name, Type type ) |
Visual Basic |
---|
Public Function InsertNew ( _ index As Integer, _ name As String, _ type As Type _ ) As Column |
Visual C++ |
---|
public: Column^ InsertNew( int index, String^ name, Type^ type ) |
Parameters
- index
- Type: System..::..Int32
삽입할 위치를 나타냅니다.
- name
- Type: System..::..String
생성될 행의 이름입니다. null값이거나 빈문자열일 경우 임의의 이름이 지정됩니다.
- type
- Type: System..::..Type
행이 관리할 데이터의 형식입니다. null값일 경우 string형식으로 대체 됩니다.
Return Value
새로 생성된 Column의 인스턴스입니다.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | index가 0보다 작거나, Count보다 클 경우 |
System..::..ArgumentException | 같은 이름을 가진 행이 컬렉션에 이미 존재하는 경우 |