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
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort: Gedurende 2024 worden GitHub Issues uitgefaseerd als het feedbackmechanisme voor inhoud. Dit wordt vervangen door een nieuw feedbacksysteem. Ga voor meer informatie naar:Feedback verzenden en bekijken voor