DataGridColumnStyle.DataGridTableStyle DataGridColumnStyle.DataGridTableStyle DataGridColumnStyle.DataGridTableStyle DataGridColumnStyle.DataGridTableStyle Property

定义

获取列的 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; }
member this.DataGridTableStyle : System.Windows.Forms.DataGridTableStyle
Public Overridable ReadOnly Property DataGridTableStyle As DataGridTableStyle

属性值

示例

下面的代码示例输出MappingNameDataGridTableStyle,其中包含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

适用于

另请参阅