DataGridColumnStyle.CreateHeaderAccessibleObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
An AccessibleObject for the column.
Examples
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;
}
Remarks
This property is called by a DataGridTableStyle when its System.Windows.Forms.DataGrid property changes. This property is required because any child controls hosted by a DataGridColumnStyle must be added to the System.Windows.Forms.DataGrid control's ControlCollection
.
Applies to
See also
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro