DataGridColumnStyle.CreateHeaderAccessibleObject Metoda

Definicja

Pobiera element AccessibleObject dla kolumny.

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

Zwraca

AccessibleObject

Element AccessibleObject dla kolumny.

Przykłady

Poniższy przykład kodu pobiera System.Windows.Forms.DataGrid element DataGridColumnStyle.

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;
 }

Uwagi

Ta właściwość jest wywoływana DataGridTableStyle przez właściwość, gdy zmienia się jej System.Windows.Forms.DataGrid właściwość. Ta właściwość jest wymagana, ponieważ wszystkie kontrolki podrzędne hostowane przez element DataGridColumnStyle muszą zostać dodane do kontrolki System.Windows.Forms.DataGrid ControlCollection.

Dotyczy

Zobacz też