DataGridColumnStyle.CreateHeaderAccessibleObject DataGridColumnStyle.CreateHeaderAccessibleObject DataGridColumnStyle.CreateHeaderAccessibleObject DataGridColumnStyle.CreateHeaderAccessibleObject Method

정의

이 열에 대한 AccessibleObject를 가져옵니다.Gets the AccessibleObject for the column.

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

반환

예제

다음 코드 예제에서는 합니다 System.Windows.Forms.DataGrid 의 한 DataGridColumnStyle합니다.The following code example gets the System.Windows.Forms.DataGrid of a 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 속성 변경 합니다.This property is called by a DataGridTableStyle when its System.Windows.Forms.DataGrid property changes. 이 속성은 모든 자식 컨트롤에서 호스팅되기 때문에 필요를 DataGridColumnStyle 에 추가 해야 합니다 System.Windows.Forms.DataGrid 컨트롤의 ControlCollection합니다.This property is required because any child controls hosted by a DataGridColumnStyle must be added to the System.Windows.Forms.DataGrid control's ControlCollection.

적용 대상

추가 정보