指定した列と列ヘッダーテキストを持つDataGridViewColumnをコレクションに追加します。
Namespace: YiaoWang.Windows.FormsAssembly: YiaoWang.Windows.Forms (YiaoWang.Windows.Forms.dll 内) バージョン: 2.11.5.7 (2.11.5.7)
Syntax
C# |
---|
public void AddCol( string colName, string headerText, Type type, int width, DataGridViewContentAlignment align ) |
Visual Basic |
---|
Public Sub AddCol ( _ colName As String, _ headerText As String, _ type As Type, _ width As Integer, _ align As DataGridViewContentAlignment _ ) |
Parameters
- colName
- Type: System..::..String
設定する列の名前。
- headerText
- Type: System..::..String
列ヘッダーのテキスト。
- type
- Type: System..::..Type
新しい列のSystem.Data.DataColumen.DataType。
- width
- Type: System..::..Int32
列の幅。
- align
- Type: System.Windows.Forms..::..DataGridViewContentAlignment
セルの内容を示す場所。