39 overrides of Name
System.Windows.Forms (37)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
305
public override string?
Name
System\Windows\Forms\Accessibility\LabelEditAccessibleObject.cs (1)
68
public override string?
Name
=> _labelEdit.TryGetTarget(out var target)
System\Windows\Forms\Controls\ComboBox\ComboBox.ChildAccessibleObject.cs (1)
24
public override string?
Name
=> _owner.AccessibilityObject.Name;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildDropDownButtonUiaProvider.cs (1)
40
public override string
Name
=> _owner.DroppedDown ? SR.ComboboxDropDownButtonCloseName : SR.ComboboxDropDownButtonOpenName;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
55
public override string
Name
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
141
public override string?
Name
=> _owningComboBox is null ? base.Name : _owningComboBox.GetItemText(_owningItem.Item);
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
17
public override string
Name
=> SR.DataGridView_AccSelectedCellsName;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
45
public override string
Name
=> SR.DataGridView_AccTopRow;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
47
public override string?
Name
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
89
public override string
Name
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
18
public override string
Name
=> SR.DataGridView_AccSelectedRowCellsName;
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
111
public override string?
Name
System\Windows\Forms\Controls\ListBoxes\ListBox.ItemAccessibleObject.cs (1)
92
public override string?
Name
=> _owningListBox.GetItemText(_itemEntry.Item);
System\Windows\Forms\Controls\ListView\ColumnHeader.ListViewColumnHeaderAccessibleObject.cs (1)
20
public override string?
Name
=> _owningColumnHeader.Text;
System\Windows\Forms\Controls\ListView\ListViewGroup.ListViewGroupAccessibleObject.cs (1)
101
public override string
Name
=>
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewItemBaseAccessibleObject.cs (1)
61
public override string?
Name
=> _owningItem.Text;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
92
public override string?
Name
=> base.Name ?? OwningSubItem?.Text ?? string.Empty;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarAccessibleObject.cs (1)
202
public override string
Name
=> _initName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarBodyAccessibleObject.cs (1)
194
public override string
Name
=> _initName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
158
public override string
Name
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarHeaderAccessibleObject.cs (1)
56
public override string
Name
=> _initName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarNextButtonAccessibleObject.cs (1)
77
public override string
Name
=> SR.MonthCalendarNextButtonAccessibleName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarPreviousButtonAccessibleObject.cs (1)
76
public override string
Name
=> SR.MonthCalendarPreviousButtonAccessibleName;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
185
public override string?
Name
=> null; // Rows don't have names like in a native calendar
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarTodayLinkAccessibleObject.cs (1)
47
public override string
Name
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
68
public override string?
Name
=> this.TryGetOwnerAs(out GridEntry? owner) ? owner.PropertyLabel : null;
System\Windows\Forms\Controls\TabControl\TabPage.TabAccessibleObject.cs (1)
51
public override string?
Name
=> _owningTabPage.Text;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
119
public override string?
Name
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarFirstButtonAccessibleObject.cs (1)
21
public override string?
Name
=> !this.TryGetOwnerAs(out TrackBar? owner) || ParentInternal is not { } parent
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarLastButtonAccessibleObject.cs (1)
21
public override string?
Name
=> !this.TryGetOwnerAs(out TrackBar? owner) || ParentInternal is not { } parent
System\Windows\Forms\Controls\TrackBar\TrackBar.TrackBarThumbAccessibleObject.cs (1)
16
public override string?
Name
=> SR.TrackBarPositionButtonName;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
136
public override string?
Name
=> _owningTreeNode.Text;
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainItemAccessibleObject.cs (1)
25
public override string?
Name
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.UpDownButtonsAccessibleObject.DirectionButtonAccessibleObject.cs (1)
90
public override string
Name
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (1)
109
public override string
Name
=> string.IsNullOrEmpty(base.Name) ? _controlItem.Error : base.Name;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
103
public override string
Name
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
49
public override string?
Name
=> GetNameInternal().ToNullableStringAndFree();
System.Windows.Forms.Design (2)
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
47
public override string
Name
=> _color.ToString();
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
32
public override string
Name
=> _control.Name;
13 writes to Name
System.Windows.Forms (3)
System\Windows\Forms\Accessibility\AccessibleObject.cs (2)
2450
Name
= szName.ToString();
2464
child.
Name
= szName.ToString();
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.UpDownEditAccessibleObject.cs (1)
29
set => _parent.AccessibilityObject.
Name
= value;
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DataGridViewCellStyleBuilder.cs (4)
49
_sampleDataGridView.AccessibilityObject.
Name
= SR.CellStyleBuilderNormalPreviewAccName;
54
row.Cells[0].AccessibilityObject.
Name
= SR.CellStyleBuilderSelectedPreviewAccName;
59
_sampleDataGridViewSelected.AccessibilityObject.
Name
= SR.CellStyleBuilderSelectedPreviewAccName;
64
row.Cells[0].AccessibilityObject.
Name
= SR.CellStyleBuilderNormalPreviewAccName;
System.Windows.Forms.Tests (6)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
39
Name
= value
44
accessibleObject.
Name
= value;
System\Windows\Forms\AccessibleObjects\ComboBox.ChildAccessibleObjectTests.cs (1)
33
control.AccessibilityObject.
Name
= testName;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1715
accessibleObject.
Name
= "CustomName";
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
124
accessibleObject.
Name
= testName;
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (1)
152
accessibleObject.
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
"/>
639
UIA_PROPERTY_ID.UIA_LegacyIAccessibleNamePropertyId => !string.IsNullOrEmpty(
Name
) ? (VARIANT)
Name
: VARIANT.Empty,
642
UIA_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)
24
public override string? Name => _owner.AccessibilityObject.
Name
;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxChildTextUiaProvider.cs (1)
57
get => _owner.AccessibilityObject.
Name
?? string.Empty;
System\Windows\Forms\Controls\ComboBox\ComboBox.ComboBoxItemAccessibleObject.cs (1)
141
public override string? Name => _owningComboBox is null ? base.
Name
: _owningComboBox.GetItemText(_owningItem.Item);
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
953
string cellName = AccessibilityObject.
Name
?? string.Empty;
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellAccessibleObject.cs (1)
65
public override string? Name => ParentPrivate?.
Name
?? string.Empty;
System\Windows\Forms\Controls\ListView\ListViewItem.ListViewSubItem.ListViewSubItemAccessibleObject.cs (1)
92
public 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)
94
owner.OwnerGrid.AccessibilityObject.
Name
);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStrip.PropertyGridToolStripAccessibleObject.cs (1)
61
return 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)
129
string? baseName = base.
Name
;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.UpDownEditAccessibleObject.cs (1)
23
get => _parent.AccessibilityObject.
Name
System\Windows\Forms\ErrorProvider\ErrorProvider.ControlItem.ControlItemAccessibleObject.cs (2)
109
public override string Name => string.IsNullOrEmpty(base.
Name
) ? _controlItem.Error : base.
Name
;
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObject.cs (1)
107
string? name = base.
Name
;
System.Windows.Forms.Tests (133)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (24)
26
Assert.Null(accessibleObject.
Name
);
41
Assert.Null(accessibleObject.
Name
);
45
Assert.Null(accessibleObject.
Name
);
621
Assert.Null(accessibleObject.
Name
);
640
Assert.Null(accessibleObject.
Name
);
661
Assert.Equal("Text", accessibleObject.
Name
);
687
Assert.Null(accessibleObject.
Name
);
706
Assert.Null(accessibleObject.
Name
);
725
Assert.Null(accessibleObject.
Name
);
744
Assert.Null(accessibleObject.
Name
);
765
Assert.Null(accessibleObject.
Name
);
786
Assert.Equal("Text", accessibleObject.
Name
);
807
Assert.Equal("Text", accessibleObject.
Name
);
2047
.Setup(a => a.
Name
)
2052
mockAccessibleObject.Verify(a => a.
Name
, Times.Once());
2069
.Setup(a => a.
Name
)
2077
.Setup(a => a.
Name
)
2100
mockAccessibleObjectChild1.Verify(a => a.
Name
, Times.Exactly(child1CallCount));
2101
mockAccessibleObjectChild2.Verify(a => a.
Name
, Times.Exactly(child2CallCount));
2444
Assert.Null(accessibleObject.
Name
);
2479
Assert.Null(childAccessibleObject1.
Name
);
2480
Assert.Null(childAccessibleObject2.
Name
);
2515
Assert.Null(childAccessibleObject1.
Name
);
2516
Assert.Null(childAccessibleObject2.
Name
);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (1)
48
Assert.Equal(testName, checkedListBox.AccessibilityObject.GetChild(0).
Name
);
System\Windows\Forms\AccessibleObjects\ComboBox.ComboBoxItemAccessibleObjectTests.cs (7)
76
Assert.Equal(person.Name, itemAccessibleObject.
Name
);
99
Assert.Equal("aaa", comboBoxItem1.
Name
);
106
Assert.Equal("aaa", comboBoxItem2.
Name
);
114
Assert.Equal("aaa", comboBoxItem3.
Name
);
139
Assert.Equal("aaa", comboBoxItem3.
Name
);
147
Assert.Equal("aaa", comboBoxItem2.
Name
);
155
Assert.Equal("aaa", comboBoxItem1.
Name
);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
1709
Assert.Equal("control", accessibleObject.
Name
);
1713
Assert.Equal("&control", accessibleObject.
Name
);
1717
Assert.Equal("CustomName", accessibleObject.
Name
);
1721
Assert.Equal("CustomName", accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (9)
184
Assert.Equal(string.Empty, accessibleObject.
Name
);
196
Assert.Equal(string.Empty, accessibleObject.
Name
);
207
Assert.Equal(string.Empty, accessibleObject.
Name
);
221
Assert.Equal(expected, accessibleObject.
Name
);
238
Assert.Equal(expected, accessibleObject.
Name
);
257
Assert.Equal(expected, accessibleObject.
Name
);
277
Assert.Equal(expected, accessibleObject.
Name
);
285
Assert.Throws<InvalidOperationException>(() => accessibleObject.
Name
);
1483
Assert.Equal($"{string.Format(SR.DataGridView_AccRowName, expectedIndex)}, Not sorted.", dataGridView.Rows[0].Cells[0].AccessibilityObject.
Name
);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (16)
71
Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibilityObject.
Name
);
88
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.
Name
);
89
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject2.
Name
);
90
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 3), accessibleObject3.
Name
);
109
Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject1.
Name
);
110
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject2.
Name
);
111
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject3.
Name
);
130
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.
Name
);
131
Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject2.
Name
);
132
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject3.
Name
);
151
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 1), accessibleObject1.
Name
);
152
Assert.Equal(string.Format(SR.DataGridView_AccRowName, 2), accessibleObject2.
Name
);
153
Assert.Equal(string.Format(SR.DataGridView_AccRowName, -1), accessibleObject3.
Name
);
161
Assert.Throws<InvalidOperationException>(() => accessibleObject.
Name
);
314
Assert.Equal("Selected Row Cells", selectedAccessibleObject.
Name
);
2399
Assert.Equal(string.Format(SR.DataGridView_AccRowName, expectedIndex), dataGridView.Rows[0].AccessibilityObject.
Name
);
System\Windows\Forms\AccessibleObjects\DataGridViewRowHeaderCellAccessibleObjectTests.cs (2)
58
Assert.Equal(row.AccessibilityObject.
Name
, row.HeaderCell.AccessibilityObject.
Name
);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
29
Assert.Equal(SR.DataGridView_AccSelectedCellsName, accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
29
Assert.Equal(SR.DataGridView_AccSelectedRowCellsName, accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (2)
128
Assert.Equal(expected, cell.AccessibilityObject.
Name
);
141
Assert.Equal(string.Empty, cell.AccessibilityObject.
Name
);
System\Windows\Forms\AccessibleObjects\DateTimePicker.DateTimePickerAccessibleObjectTests.cs (2)
282
Assert.Equal(string.Empty, dateTimePicker.AccessibilityObject.
Name
);
292
Assert.Equal(testAccessibleName, dateTimePicker.AccessibilityObject.
Name
);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ControlItem.ControlItemAccessibleObjectTests.cs (1)
126
Assert.Equal(testError, accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\ErrorProvider.ErrorWindow.ErrorWindowAccessibleObjectTests.cs (1)
154
Assert.Equal(SR.ErrorProviderDefaultAccessibleName, accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
99
Assert.Null(accessibleObject.
Name
);
110
Assert.NotNull(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
110
Assert.NotEmpty(accessibleObject.
Name
);
121
Assert.Null(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
88
Assert.NotEmpty(accessibleObject.
Name
);
99
Assert.Null(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
99
Assert.NotEmpty(accessibleObject.
Name
);
110
Assert.Null(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
77
Assert.NotEmpty(accessibleObject.
Name
);
88
Assert.Null(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\ListBox.ListBoxItemAccessibleObjectTests.cs (4)
42
Assert.Equal(person.Name, itemAccessibleObject.
Name
);
59
if (itemAccessibleObject.
Name
is null)
65
Assert.Equal(itemAccessibleObject.
Name
, ((BSTR)actual).ToStringAndFree());
180
itemAccessibleObject.
Name
.Should().Be("Item 1");
System\Windows\Forms\AccessibleObjects\ListViewItem.ListViewItemDetailsAccessibleObjectTests.cs (4)
198
Assert.Equal("sub1", listItemAccessibleObject.GetChild(2).
Name
);
202
Assert.Equal("sub2", listItemAccessibleObject.GetChild(2).
Name
);
222
Assert.Equal("sub1", listItemAccessibleObject.GetChild(1).
Name
);
226
Assert.Equal("sub2", listItemAccessibleObject.GetChild(1).
Name
);
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (2)
29
Assert.Equal(accessibilityObject.
Name
, ((BSTR)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
116
Assert.Equal(listView.Items[0].Text, accessibilityObject.
Name
);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarAccessibleObjectTests.cs (2)
23
Assert.Equal(name, calendar.
Name
);
247
Assert.Equal(initName, calendar.
Name
);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarBodyAccessibleObjectTests.cs (1)
153
Assert.Equal(expected, calendarBody.
Name
);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarCellAccessibleObjectTests.cs (2)
132
Assert.Empty(cellAccessibleObject.
Name
);
157
Assert.Equal(expected, cellAccessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (1)
26
cellAccessibleObject.
Name
.Should().Be("Test name");
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarHeaderAccessibleObjectTests.cs (2)
20
headerAccessibleObject.
Name
.Should().BeEmpty();
38
string actual = headerAccessibleObject.
Name
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
23
nextButtonAccessibleObject.
Name
.Should().Be(SR.MonthCalendarNextButtonAccessibleName);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarPreviousButtonAccessibleObjectTests.cs (1)
57
string actual = previousButtonAccessibleObject.
Name
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarRowAccessibleObjectTests.cs (1)
62
string actual = rowAccessibleObject.
Name
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarTodayLinkAccessibleObjectTests.cs (1)
81
string actual = todayLinkAccessibleObject.
Name
;
System\Windows\Forms\AccessibleObjects\PropertyGridView.GridViewListBoxItemAccessibleObjectTests.cs (1)
54
Assert.Equal(itemEntry.ToString(), accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\TabPage.TabAccessibleObjectTests.cs (1)
63
Assert.Equal(expectedText, accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
85
Assert.Empty(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\ToolStripScrollButton.ToolStripScrollButtonAccessibleObjectTests.cs (2)
150
Assert.Equal(expectedUpButtonName, upScrollButtonAccessibleObject.
Name
);
154
Assert.Equal(expectedDownButtonName, downScrollButtonAccessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarFirstButtonAccessibleObjectTests.cs (4)
96
Assert.Equal(SR.TrackBarLargeDecreaseButtonName, accessibleObject.
Name
);
130
Assert.Equal(SR.TrackBarLargeIncreaseButtonName, accessibleObject.
Name
);
409
accessibleObject.
Name
.Should().Be(SR.TrackBarLargeDecreaseButtonName);
423
accessibleObject.
Name
.Should().Be(SR.TrackBarLargeIncreaseButtonName);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarLastButtonAccessibleObjectTests.cs (2)
96
Assert.Equal(SR.TrackBarLargeIncreaseButtonName, accessibleObject.
Name
);
130
Assert.Equal(SR.TrackBarLargeDecreaseButtonName, accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarThumbAccessibleObjectTests.cs (1)
63
Assert.Equal(SR.TrackBarPositionButtonName, accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (2)
28
Assert.Equal(accessibilityObject.
Name
, ((BSTR)accessibilityObject.GetPropertyValue(UIA_PROPERTY_ID.UIA_NamePropertyId)).ToStringAndFree());
115
Assert.Equal(treeView.Nodes[0].Text, accessibilityObject.
Name
);
System\Windows\Forms\AccessibleObjects\UpDownBase.UpDownEdit.UpDownEditAccessibleObjectTests.cs (4)
55
Assert.Equal(name, accessibleObject.
Name
);
66
Assert.Null(accessibleObject.
Name
);
77
Assert.Equal(SR.EditDefaultAccessibleName, accessibleObject.
Name
);
88
Assert.Equal(SR.EditDefaultAccessibleName, accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
99
Assert.Null(accessibleObject.
Name
);
110
Assert.NotNull(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
110
Assert.NotEmpty(accessibleObject.
Name
);
121
Assert.Null(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
88
Assert.NotEmpty(accessibleObject.
Name
);
99
Assert.Null(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
99
Assert.NotEmpty(accessibleObject.
Name
);
110
Assert.Null(accessibleObject.
Name
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
77
Assert.NotEmpty(accessibleObject.
Name
);
88
Assert.Null(accessibleObject.
Name
);
System\Windows\Forms\DataGridViewCellTests.cs (1)
6460
.Setup(a => a.
Name
)
System\Windows\Forms\MonthCalendarTests.cs (1)
4301
string name = accessibleObject.
Name
;