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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za