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.DataGrid объект 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;
 }

Комментарии

Это свойство вызывается при DataGridTableStyle изменении его System.Windows.Forms.DataGrid свойства. Это свойство является обязательным, так как все дочерние элементы управления, размещенные в DataGridColumnStyle , должны быть добавлены в System.Windows.Forms.DataGrid элемент управления ControlCollection.

Применяется к

См. также раздел