39 overrides of Name
System.Windows.Forms (37)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
305public 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)
47public override string? Name
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
89public 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)
101public 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;
13 writes to Name
System.Windows.Forms (3)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
2450Name = szName.ToString(); 2464child.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;
System.Windows.Forms.Tests (6)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
39Name = value 44accessibleObject.Name = value;
System\Windows\Forms\AccessibleObjects\ComboBox.ChildAccessibleObjectTests.cs (1)
33control.AccessibilityObject.Name = testName;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1715accessibleObject.Name = "CustomName";
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
124accessibleObject.Name = testName;
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (1)
152accessibleObject.Name = testName;
160 references to Name
System.Windows.Forms (27)
System\Windows\Forms\Accessibility\AccessibleObject.cs (10)
242/// Determines if <see cref="GetNameInternal"/> can be called without calling <see cref="Name"/> 257/// Determines if <see cref="SetNameInternal(BSTR)"/> can be called without calling <see cref="Name"/> 639UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId => !string.IsNullOrEmpty(Name) ? (VARIANT)Name : VARIANT.Empty, 642UIA_PROPERTY_ID.UIA_NamePropertyId => Name is null ? VARIANT.Empty : (VARIANT)Name, 1194: new(Name); 2209: new(Name); 2219: new(child.Name); 2231: 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)
953string 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)
94owner.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;
System.Windows.Forms.Tests (133)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (24)
26Assert.Null(accessibleObject.Name); 41Assert.Null(accessibleObject.Name); 45Assert.Null(accessibleObject.Name); 621Assert.Null(accessibleObject.Name); 640Assert.Null(accessibleObject.Name); 661Assert.Equal("Text", accessibleObject.Name); 687Assert.Null(accessibleObject.Name); 706Assert.Null(accessibleObject.Name); 725Assert.Null(accessibleObject.Name); 744Assert.Null(accessibleObject.Name); 765Assert.Null(accessibleObject.Name); 786Assert.Equal("Text", accessibleObject.Name); 807Assert.Equal("Text", accessibleObject.Name); 2047.Setup(a => a.Name) 2052mockAccessibleObject.Verify(a => a.Name, Times.Once()); 2069.Setup(a => a.Name) 2077.Setup(a => a.Name) 2100mockAccessibleObjectChild1.Verify(a => a.Name, Times.Exactly(child1CallCount)); 2101mockAccessibleObjectChild2.Verify(a => a.Name, Times.Exactly(child2CallCount)); 2444Assert.Null(accessibleObject.Name); 2479Assert.Null(childAccessibleObject1.Name); 2480Assert.Null(childAccessibleObject2.Name); 2515Assert.Null(childAccessibleObject1.Name); 2516Assert.Null(childAccessibleObject2.Name);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (1)
48Assert.Equal(testName, checkedListBox.AccessibilityObject.GetChild(0).Name);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (7)
76Assert.Equal(person.Name, itemAccessibleObject.Name); 99Assert.Equal("aaa", comboBoxItem1.Name); 106Assert.Equal("aaa", comboBoxItem2.Name); 114Assert.Equal("aaa", comboBoxItem3.Name); 139Assert.Equal("aaa", comboBoxItem3.Name); 147Assert.Equal("aaa", comboBoxItem2.Name); 155Assert.Equal("aaa", comboBoxItem1.Name);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1709Assert.Equal("control", accessibleObject.Name); 1713Assert.Equal("&control", accessibleObject.Name); 1717Assert.Equal("CustomName", accessibleObject.Name); 1721Assert.Equal("CustomName", accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (9)
184Assert.Equal(string.Empty, accessibleObject.Name); 196Assert.Equal(string.Empty, accessibleObject.Name); 207Assert.Equal(string.Empty, accessibleObject.Name); 221Assert.Equal(expected, accessibleObject.Name); 238Assert.Equal(expected, accessibleObject.Name); 257Assert.Equal(expected, accessibleObject.Name); 277Assert.Equal(expected, accessibleObject.Name); 285Assert.Throws<InvalidOperationException>(() => accessibleObject.Name); 1483Assert.Equal($"{string.Format(SR.DataGridView_AccRowName, expectedIndex)}, Not sorted.", dataGridView.Rows[0].Cells[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (16)
71Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibilityObject.Name); 88Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.Name); 89Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject2.Name); 90Assert.Equal(string.Format(SR.DataGridView_AccRowName, 3), accessibleObject3.Name); 109Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject1.Name); 110Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject2.Name); 111Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject3.Name); 130Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.Name); 131Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject2.Name); 132Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject3.Name); 151Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.Name); 152Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject2.Name); 153Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject3.Name); 161Assert.Throws<InvalidOperationException>(() => accessibleObject.Name); 314Assert.Equal("Selected Row Cells", selectedAccessibleObject.Name); 2399Assert.Equal(string.Format(SR.DataGridView_AccRowName, expectedIndex), dataGridView.Rows[0].AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (2)
58Assert.Equal(row.AccessibilityObject.Name, row.HeaderCell.AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
29Assert.Equal(SR.DataGridView_AccSelectedCellsName, accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
29Assert.Equal(SR.DataGridView_AccSelectedRowCellsName, accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (2)
128Assert.Equal(expected, cell.AccessibilityObject.Name); 141Assert.Equal(string.Empty, cell.AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (2)
282Assert.Equal(string.Empty, dateTimePicker.AccessibilityObject.Name); 292Assert.Equal(testAccessibleName, dateTimePicker.AccessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
126Assert.Equal(testError, accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (1)
154Assert.Equal(SR.ErrorProviderDefaultAccessibleName, accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
99Assert.Null(accessibleObject.Name); 110Assert.NotNull(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
110Assert.NotEmpty(accessibleObject.Name); 121Assert.Null(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
88Assert.NotEmpty(accessibleObject.Name); 99Assert.Null(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
99Assert.NotEmpty(accessibleObject.Name); 110Assert.Null(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
77Assert.NotEmpty(accessibleObject.Name); 88Assert.Null(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (4)
42Assert.Equal(person.Name, itemAccessibleObject.Name); 59if (itemAccessibleObject.Name is null) 65Assert.Equal(itemAccessibleObject.Name, ((BSTR)actual).ToStringAndFree()); 180itemAccessibleObject.Name.Should().Be("Item 1");
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (4)
198Assert.Equal("sub1", listItemAccessibleObject.GetChild(2).Name); 202Assert.Equal("sub2", listItemAccessibleObject.GetChild(2).Name); 222Assert.Equal("sub1", listItemAccessibleObject.GetChild(1).Name); 226Assert.Equal("sub2", listItemAccessibleObject.GetChild(1).Name);
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (2)
29Assert.Equal(accessibilityObject.Name, ((BSTR)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree()); 116Assert.Equal(listView.Items[0].Text, accessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (2)
23Assert.Equal(name, calendar.Name); 247Assert.Equal(initName, calendar.Name);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
153Assert.Equal(expected, calendarBody.Name);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (2)
132Assert.Empty(cellAccessibleObject.Name); 157Assert.Equal(expected, cellAccessibleObject.Name);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (1)
26cellAccessibleObject.Name.Should().Be("Test name");
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (2)
20headerAccessibleObject.Name.Should().BeEmpty(); 38string actual = headerAccessibleObject.Name;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
23nextButtonAccessibleObject.Name.Should().Be(SR.MonthCalendarNextButtonAccessibleName);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarPreviousButtonAccessibleObjectTests.cs (1)
57string actual = previousButtonAccessibleObject.Name;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarRowAccessibleObjectTests.cs (1)
62string actual = rowAccessibleObject.Name;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarTodayLinkAccessibleObjectTests.cs (1)
81string actual = todayLinkAccessibleObject.Name;
System\Windows\Forms\AccessibleObjects\PropertyGridView.GridViewListBoxItemAccessibleObjectTests.cs (1)
54Assert.Equal(itemEntry.ToString(), accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
63Assert.Equal(expectedText, accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
85Assert.Empty(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (2)
150Assert.Equal(expectedUpButtonName, upScrollButtonAccessibleObject.Name); 154Assert.Equal(expectedDownButtonName, downScrollButtonAccessibleObject.Name);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (4)
96Assert.Equal(SR.TrackBarLargeDecreaseButtonName, accessibleObject.Name); 130Assert.Equal(SR.TrackBarLargeIncreaseButtonName, accessibleObject.Name); 409accessibleObject.Name.Should().Be(SR.TrackBarLargeDecreaseButtonName); 423accessibleObject.Name.Should().Be(SR.TrackBarLargeIncreaseButtonName);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (2)
96Assert.Equal(SR.TrackBarLargeIncreaseButtonName, accessibleObject.Name); 130Assert.Equal(SR.TrackBarLargeDecreaseButtonName, accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (1)
63Assert.Equal(SR.TrackBarPositionButtonName, accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (2)
28Assert.Equal(accessibilityObject.Name, ((BSTR)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree()); 115Assert.Equal(treeView.Nodes[0].Text, accessibilityObject.Name);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (4)
55Assert.Equal(name, accessibleObject.Name); 66Assert.Null(accessibleObject.Name); 77Assert.Equal(SR.EditDefaultAccessibleName, accessibleObject.Name); 88Assert.Equal(SR.EditDefaultAccessibleName, accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
99Assert.Null(accessibleObject.Name); 110Assert.NotNull(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
110Assert.NotEmpty(accessibleObject.Name); 121Assert.Null(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
88Assert.NotEmpty(accessibleObject.Name); 99Assert.Null(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
99Assert.NotEmpty(accessibleObject.Name); 110Assert.Null(accessibleObject.Name);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
77Assert.NotEmpty(accessibleObject.Name); 88Assert.Null(accessibleObject.Name);
System\Windows\Forms\DataGridViewCellTests.cs (1)
6460.Setup(a => a.Name)
System\Windows\Forms\MonthCalendarTests.cs (1)
4301string name = accessibleObject.Name;