DataGridColumnStyle.CreateHeaderAccessibleObject Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
AccessibleObject Získá sloupec.
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
Návraty
Sloupec AccessibleObject .
Příklady
Následující příklad kódu získá System.Windows.Forms.DataGridDataGridColumnStyle.
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;
}
Poznámky
Tato vlastnost je volána DataGridTableStyle při změně vlastnosti System.Windows.Forms.DataGrid. Tato vlastnost je povinná, protože všechny podřízené ovládací prvky hostované DataGridColumnStyle musí být přidány do System.Windows.Forms.DataGrid ovládacího prvku ControlCollection.