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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk