39 overrides of Name
System.Windows.Forms (37)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
304public override string? Name
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
68public override string? Name => _labelEdit.TryGetTarget(out var target)
System\Windows\Forms\Controls\ComboBox\ComboBox.ChildAccessibleObject.cs (1)
24public override string? Name => _owner.AccessibilityObject.Name;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
40public override string Name => _owner.DroppedDown ? SR.ComboboxDropDownButtonCloseName : SR.ComboboxDropDownButtonOpenName;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
55public override string Name
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
141public override string? Name => _owningComboBox is null ? base.Name : _owningComboBox.GetItemText(_owningItem.Item);
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
17public override string Name => SR.DataGridView_AccSelectedCellsName;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
45public override string Name => SR.DataGridView_AccTopRow;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
46public override string? Name
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
88public override string Name
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
18public override string Name => SR.DataGridView_AccSelectedRowCellsName;
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
111public override string? Name
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
92public override string? Name => _owningListBox.GetItemText(_itemEntry.Item);
System\Windows\Forms\Controls\ListView\ColumnHeader.ListViewColumnHeaderAccessibleObject.cs (1)
20public override string? Name => _owningColumnHeader.Text;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
96public override string Name =>
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
61public override string? Name => _owningItem.Text;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
92public override string? Name => base.Name ?? OwningSubItem?.Text ?? string.Empty;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
202public override string Name => _initName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
194public override string Name => _initName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
158public override string Name
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarHeaderAccessibleObject.cs (1)
56public override string Name => _initName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarNextButtonAccessibleObject.cs (1)
77public override string Name => SR.MonthCalendarNextButtonAccessibleName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarPreviousButtonAccessibleObject.cs (1)
76public override string Name => SR.MonthCalendarPreviousButtonAccessibleName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
185public override string? Name => null; // Rows don't have names like in a native calendar
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarTodayLinkAccessibleObject.cs (1)
47public override string Name
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
68public override string? Name => this.TryGetOwnerAs(out GridEntry? owner) ? owner.PropertyLabel : null;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
51public override string? Name => _owningTabPage.Text;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
119public override string? Name
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (1)
21public override string? Name => !this.TryGetOwnerAs(out TrackBar? owner) || ParentInternal is not { } parent
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarLastButtonAccessibleObject.cs (1)
21public override string? Name => !this.TryGetOwnerAs(out TrackBar? owner) || ParentInternal is not { } parent
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarThumbAccessibleObject.cs (1)
16public override string? Name => SR.TrackBarPositionButtonName;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
136public override string? Name => _owningTreeNode.Text;
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainItemAccessibleObject.cs (1)
25public override string? Name
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
90public override string Name
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
109public override string Name => string.IsNullOrEmpty(base.Name) ? _controlItem.Error : base.Name;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
103public override string Name
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
49public override string? Name => GetNameInternal().ToNullableStringAndFree();
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
47public override string Name => _color.ToString();
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
32public override string Name => _control.Name;
7 writes to Name
System.Windows.Forms (3)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
2449Name = szName.ToString(); 2463child.Name = szName.ToString();
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.UpDownEditAccessibleObject.cs (1)
29set => _parent.AccessibilityObject.Name = value;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (4)
49_sampleDataGridView.AccessibilityObject.Name = SR.CellStyleBuilderNormalPreviewAccName; 54row.Cells[0].AccessibilityObject.Name = SR.CellStyleBuilderSelectedPreviewAccName; 59_sampleDataGridViewSelected.AccessibilityObject.Name = SR.CellStyleBuilderSelectedPreviewAccName; 64row.Cells[0].AccessibilityObject.Name = SR.CellStyleBuilderNormalPreviewAccName;
27 references to Name
System.Windows.Forms (27)
System\Windows\Forms\Accessibility\AccessibleObject.cs (10)
241/// Determines if <see cref="GetNameInternal"/> can be called without calling <see cref="Name"/> 256/// Determines if <see cref="SetNameInternal(BSTR)"/> can be called without calling <see cref="Name"/> 638UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId => !string.IsNullOrEmpty(Name) ? (VARIANT)Name : VARIANT.Empty, 641UIA_PROPERTY_ID.UIA_NamePropertyId => Name is null ? VARIANT.Empty : (VARIANT)Name, 1193: new(Name); 2208: new(Name); 2218: new(child.Name); 2230: new(Name);
System\Windows\Forms\Controls\ComboBox\ComboBox.ChildAccessibleObject.cs (1)
24public override string? Name => _owner.AccessibilityObject.Name;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
57get => _owner.AccessibilityObject.Name ?? string.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
141public override string? Name => _owningComboBox is null ? base.Name : _owningComboBox.GetItemText(_owningItem.Item);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
954string cellName = AccessibilityObject.Name ?? string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
65public override string? Name => ParentPrivate?.Name ?? string.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
92public override string? Name => base.Name ?? OwningSubItem?.Text ?? string.Empty;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CommandsPane.CommandsPaneAccessibleObject.cs (1)
53? target.AccessibilityObject.Name
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.HelpPaneAccessibleObject.cs (1)
63? string.Format(SR.PropertyGridHelpPaneAccessibleNameTemplate, target.AccessibilityObject.Name)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.GridViewTextBoxAccessibleObject.cs (1)
98: owner.PropertyGridView.SelectedGridEntry?.AccessibilityObject.Name ?? base.Name;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.PropertyGridViewAccessibleObject.cs (1)
93owner.OwnerGrid.AccessibilityObject.Name);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStrip.PropertyGridToolStripAccessibleObject.cs (1)
61return target?.AccessibilityObject.Name;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.ToolStripDropDownAccessibleObject.cs (1)
32&& owner.AccessibleName is { } name ? name : owner?.OwnerItem?.AccessibilityObject.Name;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
129string? baseName = base.Name;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.UpDownEditAccessibleObject.cs (1)
23get => _parent.AccessibilityObject.Name
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (2)
109public override string Name => string.IsNullOrEmpty(base.Name) ? _controlItem.Error : base.Name;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
107string? name = base.Name;