새로운 행의 인스턴스를 생성하고 컬렉션에 추가합니다.

Namespace: Ntreev.Windows.Forms.Grid
Assembly: Ntreev.Windows.Forms.Grid (in Ntreev.Windows.Forms.Grid.dll) Version: 1.0.4216.32284

Syntax

C#
public Column AddNew(
	string name,
	Type type
)
Visual Basic
Public Function AddNew ( _
	name As String, _
	type As Type _
) As Column
Visual C++
public:
Column^ AddNew(
	String^ name, 
	Type^ type
)

Parameters

name
Type: System..::..String
생성될 행의 이름입니다. null값이거나 빈문자열일 경우 임의의 이름이 지정됩니다.
type
Type: System..::..Type
행이 관리할 데이터의 형식입니다. null값일 경우 string형식으로 대체 됩니다.

Return Value

새로 생성된 Column의 인스턴스입니다.

Exceptions

ExceptionCondition
System..::..ArgumentException 같은 이름을 가진 행이 컬렉션에 이미 존재하는 경우

See Also