DataGridColumnStyle.DataGridTableStyle 属性

定义

获取列的 DataGridTableStyleGets the DataGridTableStyle for the column.

public:
 virtual property System::Windows::Forms::DataGridTableStyle ^ DataGridTableStyle { System::Windows::Forms::DataGridTableStyle ^ get(); };
[System.ComponentModel.Browsable(false)]
public virtual System.Windows.Forms.DataGridTableStyle DataGridTableStyle { get; }
[<System.ComponentModel.Browsable(false)>]
member this.DataGridTableStyle : System.Windows.Forms.DataGridTableStyle
Public Overridable ReadOnly Property DataGridTableStyle As DataGridTableStyle

属性值

DataGridTableStyle

包含当前 DataGridTableStyleDataGridColumnStyleThe DataGridTableStyle that contains the current DataGridColumnStyle.

属性

示例

下面的代码示例打印 MappingName 包含的的 DataGridTableStyle DataGridColumnStyleThe following code example prints the MappingName of a DataGridTableStyle that contains a DataGridColumnStyle.

Private Sub PrintTableMappingName _
(ByVal myColumnStyle As DataGridColumnStyle)
    Console.WriteLine _
    (myColumnStyle.DataGridTableStyle.MappingName)
End Sub

适用于

另请参阅