共用方式為


DataGridColumnStyle.CreateHeaderAccessibleObject 方法

定義

取得資料行的 AccessibleObject

protected:
 virtual System::Windows::Forms::AccessibleObject ^ CreateHeaderAccessibleObject();
protected virtual System.Windows.Forms.AccessibleObject CreateHeaderAccessibleObject ();
abstract member CreateHeaderAccessibleObject : unit -> System.Windows.Forms.AccessibleObject
override this.CreateHeaderAccessibleObject : unit -> System.Windows.Forms.AccessibleObject
Protected Overridable Function CreateHeaderAccessibleObject () As AccessibleObject

傳回

用於資料行的 AccessibleObject

範例

下列程式碼範例會取得 System.Windows.Forms.DataGridDataGridColumnStyle

private:
   void GetDataGrid( DataGridTableStyle^ thisColumn )
   {
      DataGrid^ myDataGrid;
      
      // Get the DataGrid of the column.
      myDataGrid = thisColumn->DataGrid;
   }
private void GetDataGrid(DataGridTableStyle thisColumn){
    DataGrid myDataGrid;
    
    // Get the DataGrid of the column.
    myDataGrid = thisColumn.DataGrid;
 }

備註

此屬性在屬性變更時 System.Windows.Forms.DataGridDataGridTableStyle 呼叫。 這是必要屬性,因為 所 DataGridColumnStyle 裝載的任何子控制項都必須加入至 System.Windows.Forms.DataGrid 控制項的 ControlCollection

適用於

另請參閱