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