12 overrides of Description
System.Windows.Forms (11)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
219
public override string?
Description
=> Owner?.AccessibleDescription ?? base.Description;
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.DataGridViewImageCellAccessibleObject.cs (1)
19
public override string?
Description
=> Owner is DataGridViewImageCell imageCell ? imageCell.Description : null;
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
64
public override string?
Description
=> _owningLink.Description;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarCellAccessibleObject.cs (1)
66
public override string?
Description
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarNextButtonAccessibleObject.cs (1)
31
public override string
Description
=> SR.CalendarNextButtonAccessibleObjectDescription;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarPreviousButtonAccessibleObject.cs (1)
31
public override string
Description
=> SR.CalendarPreviousButtonAccessibleObjectDescription;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarRowAccessibleObject.cs (1)
113
public override string?
Description
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.CalendarTodayLinkAccessibleObject.cs (1)
32
public override string
Description
=> SR.CalendarTodayLinkAccessibleObjectDescription;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
54
public override string?
Description
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
46
public override string?
Description
=>
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (1)
44
public override string?
Description
=> GetDescriptionInternal().ToNullableStringAndFree();
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
26
public override string?
Description
=> _control.AccessibilityObject.Description;
57 references to Description
System.Windows.Forms (6)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
172
/// Determines if <see cref="GetDescriptionInternal"/> can be called without calling <see cref="
Description
"/>
1222
: new(
Description
);
1994
: new(
Description
);
2004
: new(child.
Description
);
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
219
public override string? Description => Owner?.AccessibleDescription ?? base.
Description
;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemAccessibleObject.cs (1)
47
_ownerItem.AccessibleDescription is { } description ? description : base.
Description
;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
26
public override string? Description => _control.AccessibilityObject.
Description
;
System.Windows.Forms.Tests (50)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (17)
23
Assert.Null(accessibleObject.
Description
);
618
Assert.Null(accessibleObject.
Description
);
637
Assert.Null(accessibleObject.
Description
);
658
Assert.Null(accessibleObject.
Description
);
684
Assert.Null(accessibleObject.
Description
);
703
Assert.Null(accessibleObject.
Description
);
722
Assert.Null(accessibleObject.
Description
);
741
Assert.Null(accessibleObject.
Description
);
762
Assert.Null(accessibleObject.
Description
);
783
Assert.Null(accessibleObject.
Description
);
804
Assert.Null(accessibleObject.
Description
);
1617
.Setup(a => a.
Description
)
1625
mockAccessibleObject.Verify(a => a.
Description
, Times.Once());
1639
.Setup(a => a.
Description
)
1647
.Setup(a => a.
Description
)
1673
mockAccessibleObjectChild1.Verify(a => a.
Description
, Times.Exactly(child1CallCount));
1674
mockAccessibleObjectChild2.Verify(a => a.
Description
, Times.Exactly(child2CallCount));
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (1)
1312
string accessibleObjectDescription = controlAccessibleObject.
Description
;
System\Windows\Forms\AccessibleObjects\DataGridViewImageCellAccessibleObjectTests.cs (1)
85
Assert.Equal(testDescription, cell.AccessibilityObject.
Description
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
66
Assert.Null(accessibleObject.
Description
);
77
Assert.NotNull(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
88
Assert.NotEmpty(accessibleObject.
Description
);
99
Assert.Null(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
66
Assert.NotEmpty(accessibleObject.
Description
);
77
Assert.Null(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
77
Assert.NotEmpty(accessibleObject.
Description
);
88
Assert.Null(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
55
Assert.NotEmpty(accessibleObject.
Description
);
66
Assert.Null(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (1)
81
string accessibleObjectDescription = menuStripAccessibleObject.
Description
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarDayOfWeekCellAccessibleObjectTests.cs (1)
57
Assert.Null(cellAccessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarNextButtonAccessibleObjectTests.cs (1)
21
nextButtonAccessibleObject.
Description
.Should().Be(SR.CalendarNextButtonAccessibleObjectDescription);
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarPreviousButtonAccessibleObjectTests.cs (1)
31
string actual = previousButtonAccessibleObject.
Description
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarTodayLinkAccessibleObjectTests.cs (1)
35
string actual = todayLinkAccessibleObject.
Description
;
System\Windows\Forms\AccessibleObjects\MonthCalendar.CalendarWeekNumberCellAccessibleObjectTests.cs (1)
49
Assert.Null(cellAccessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (1)
61
string accessibleObjectDescription = statusStripAccessibleObject.
Description
;
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (1)
71
string accessibleObjectDescription = toolStripAccessibleObject.
Description
;
System\Windows\Forms\AccessibleObjects\ToolStripItemAccessibleObjectTests.cs (1)
83
string accessibleObjectDescription = toolStripItemAccessibleObject.
Description
;
System\Windows\Forms\AccessibleObjects\ToolStripTextBox.ToolStripTextBoxAccessibleObjectTests.cs (1)
59
string accessibleObjectDescription = toolStripTextBoxAccessibleObject.
Description
;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (2)
66
Assert.Null(accessibleObject.
Description
);
77
Assert.NotNull(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (2)
88
Assert.NotEmpty(accessibleObject.
Description
);
99
Assert.Null(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (2)
66
Assert.NotEmpty(accessibleObject.
Description
);
77
Assert.Null(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (2)
77
Assert.NotEmpty(accessibleObject.
Description
);
88
Assert.Null(accessibleObject.
Description
);
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (2)
55
Assert.NotEmpty(accessibleObject.
Description
);
66
Assert.Null(accessibleObject.
Description
);
System\Windows\Forms\MonthCalendarTests.cs (1)
4373
cellAccessibleObject.
Description
.Should().Be(expected);