DataGridColumnStyle.CreateHeaderAccessibleObject Méthode

Définition

Obtient la AccessibleObject colonne.

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

Retours

Pour AccessibleObject la colonne.

Exemples

L’exemple de code suivant obtient la System.Windows.Forms.DataGrid d’un 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;
 }

Remarques

Cette propriété est appelée par un DataGridTableStyle lorsque sa propriété System.Windows.Forms.DataGrid change. Cette propriété est requise, car tous les contrôles enfants hébergés par un DataGridColumnStyle doivent être ajoutés au System.Windows.Forms.DataGrid du contrôle ControlCollection.

S’applique à

Voir aussi