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

Комментарии

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

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

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