DataGridColumnStyle.CreateHeaderAccessibleObject Metoda

Definice

AccessibleObject Získá sloupec.

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

Návraty

Sloupec AccessibleObject .

Příklady

Následující příklad kódu získá 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;
 }

Poznámky

Tato vlastnost je volána DataGridTableStyle při změně vlastnosti System.Windows.Forms.DataGrid. Tato vlastnost je povinná, protože všechny podřízené ovládací prvky hostované DataGridColumnStyle musí být přidány do System.Windows.Forms.DataGrid ovládacího prvku ControlCollection.

Platí pro

Viz také