16 overrides of Value
System.Windows.Forms (13)
System\Windows\Forms\Controls\DataGridView\DataGridView.SelectedCellsAccessibleObject.cs (1)
29
public override string
Value
=> Name;
System\Windows\Forms\Controls\DataGridView\DataGridView.TopRowAccessibleObject.cs (1)
94
public override string
Value
=> Name;
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
182
public override string?
Value
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
209
public override string
Value
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewSelectedRowCellsAccessibleObject.cs (1)
33
public override string
Value
=> Name;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
46
public override string
Value
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (1)
158
public override string
Value
=> string.Empty;
System\Windows\Forms\Controls\ListBoxes\CheckedListBox.CheckedListBoxItemAccessibleObject.cs (1)
131
public override string
Value
=> IsItemChecked.ToString();
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
568
public override string?
Value
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.GridEntryAccessibleObject.cs (1)
141
public override string?
Value
System\Windows\Forms\Controls\TextBox\TextBoxBase.TextBoxBaseAccessibleObject.cs (1)
70
public override string?
Value
=> this.TryGetOwnerAs(out TextBoxBase? owner) && !owner.PasswordProtect ? ValueInternal : SR.AccessDenied;
System\Windows\Forms\Controls\TreeView\TreeNode.TreeNodeAccessibleObject.cs (1)
269
public override string?
Value
=> _owningTreeNode.Text;
System\Windows\Forms\Controls\UpDown\DomainUpDown.DomainItemAccessibleObject.cs (1)
41
public override string?
Value
=> _name;
System.Windows.Forms.Design (3)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
356
public override string?
Value
=> Owner?.Text;
System\Drawing\Design\ColorEditor.ColorPalette.ColorPaletteAccessibleObject.ColorCellAccessibleObject.cs (1)
67
public override string
Value
=> _color.ToString();
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
63
public override string?
Value
=> _control.AccessibilityObject.Value;
15 writes to Value
System.Windows.Forms (3)
System\Windows\Forms\Accessibility\AccessibleObject.cs (3)
816
Value
= newValue;
2490
Value
= szValue.ToString();
2504
child.
Value
= szValue.ToString();
System.Windows.Forms.Tests (12)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (2)
54
Value
= value
59
accessibleObject.
Value
= value;
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (4)
839
Value
= value
844
accessibleObject.
Value
= value;
856
Value
= value
861
accessibleObject.
Value
= value;
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (2)
87
accessibilityObject.
Value
= value;
92
accessibilityObject.
Value
= value;
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (4)
90
accessibilityObject.
Value
= value;
96
accessibilityObject.
Value
= value;
116
Assert.Throws<COMException>(() => accessibilityObject.
Value
= value);
133
accessibilityObject.
Value
= value;
64 references to Value
System.Windows.Forms (13)
System\Windows\Forms\Accessibility\AccessibleObject.cs (9)
347
/// Determines if <see cref="GetValueInternal"/> can be called without calling <see cref="
Value
"/>
359
/// Determines if <see cref="SetValueInternal(BSTR)"/> can be called without calling <see cref="
Value
"/>
646
UIA_PROPERTY_ID.UIA_ValueValuePropertyId => !string.IsNullOrEmpty(
Value
) ? (VARIANT)
Value
: VARIANT.Empty,
1208
: new(
Value
);
1381
*pRetVal =
Value
is null ? default : new(
Value
);
2414
: new(
Value
);
2424
: new(child.
Value
);
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
235
sb.Append(cellAccObj.
Value
);
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1149
string? value = AccessibilityObject.
Value
;
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.DateTimePickerAccessibleObject.cs (1)
50
string? baseValue = base.
Value
;
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.MonthCalendarAccessibleObject.cs (1)
610
return base.
Value
;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.ControlDesignerAccessibleObject.cs (1)
63
public override string? Value => _control.AccessibilityObject.
Value
;
System.Windows.Forms.Tests (50)
System\Windows\Forms\AccessibleObjects\AccessibleObjectTests.cs (24)
30
Assert.Empty(accessibleObject.
Value
);
56
Assert.Empty(accessibleObject.
Value
);
60
Assert.Empty(accessibleObject.
Value
);
625
Assert.Empty(accessibleObject.
Value
);
644
Assert.Null(accessibleObject.
Value
);
665
Assert.Null(accessibleObject.
Value
);
691
Assert.Empty(accessibleObject.
Value
);
710
Assert.Empty(accessibleObject.
Value
);
729
Assert.Null(accessibleObject.
Value
);
748
Assert.Null(accessibleObject.
Value
);
769
Assert.Empty(accessibleObject.
Value
);
790
Assert.Null(accessibleObject.
Value
);
811
Assert.Null(accessibleObject.
Value
);
2339
.Setup(a => a.
Value
)
2347
mockAccessibleObject.Verify(a => a.
Value
, Times.Once());
2361
.Setup(a => a.
Value
)
2369
.Setup(a => a.
Value
)
2395
mockAccessibleObjectChild1.Verify(a => a.
Value
, Times.Exactly(child1CallCount));
2396
mockAccessibleObjectChild2.Verify(a => a.
Value
, Times.Exactly(child2CallCount));
2538
Assert.Empty(accessibleObject.
Value
);
2570
Assert.Empty(childAccessibleObject1.
Value
);
2571
Assert.Empty(childAccessibleObject2.
Value
);
2603
Assert.Empty(childAccessibleObject1.
Value
);
2604
Assert.Empty(childAccessibleObject2.
Value
);
System\Windows\Forms\AccessibleObjects\CheckedListBoxItemAccessibleObjectTests.cs (1)
215
Assert.Equal(isChecked.ToString(), checkedListBox.AccessibilityObject.GetChild(0).
Value
);
System\Windows\Forms\AccessibleObjects\Control.ControlAccessibleObjectTests.cs (6)
68
Assert.Equal(string.Empty, accessibleObject.
Value
);
103
Assert.Null(accessibleObject.
Value
);
841
Assert.Null(accessibleObject.
Value
);
845
Assert.Null(accessibleObject.
Value
);
858
Assert.Equal(string.Empty, accessibleObject.
Value
);
862
Assert.Equal(string.Empty, accessibleObject.
Value
);
System\Windows\Forms\AccessibleObjects\DataGridViewCellAccessibleObjectTests.cs (2)
358
Assert.Equal(expected, accessibleObject.
Value
);
365
Assert.Throws<InvalidOperationException>(() => accessibleObject.
Value
);
System\Windows\Forms\AccessibleObjects\DataGridViewRowAccessibleObjectTests.cs (3)
230
Assert.Equal(expected, accessibleObject.
Value
);
237
Assert.Throws<InvalidOperationException>(() => accessibleObject.
Value
);
318
Assert.Equal("Selected Row Cells", selectedAccessibleObject.
Value
);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedCellsAccessibleObjectTests.cs (1)
39
Assert.Equal(SR.DataGridView_AccSelectedCellsName, accessibleObject.
Value
);
System\Windows\Forms\AccessibleObjects\DataGridViewSelectedRowCellsAccessibleObjectTests.cs (1)
39
Assert.Equal(SR.DataGridView_AccSelectedRowCellsName, accessibleObject.
Value
);
System\Windows\Forms\AccessibleObjects\DataGridViewTopLeftHeaderCellAccessibleObjectTests.cs (1)
85
Assert.Equal(string.Empty, cell.AccessibilityObject.
Value
);
System\Windows\Forms\AccessibleObjects\ProgressBarAccessibleObjectTests.cs (4)
34
Assert.Equal("5%", accessibilityObject.
Value
);
59
Assert.Equal(string.Empty, accessibilityObject.
Value
);
88
Assert.Equal(expectedValue, accessibilityObject.
Value
);
93
Assert.Equal(expectedValue, accessibilityObject.
Value
);
System\Windows\Forms\AccessibleObjects\TextBoxBaseAccessibleObjectTests.cs (1)
96
Assert.Equal(textBoxBase.Text, accessibleObject.
Value
);
System\Windows\Forms\AccessibleObjects\TrackBar.TrackBarAccessibleObjectTests.cs (6)
37
Assert.Equal("50", accessibilityObject.
Value
);
60
Assert.Equal(string.Empty, accessibilityObject.
Value
);
92
Assert.Equal(expectedValueString, accessibilityObject.
Value
);
98
Assert.Equal(expectedValueString, accessibilityObject.
Value
);
117
Assert.Equal("50", accessibilityObject.
Value
);
135
Assert.Equal(string.Empty, accessibilityObject.
Value
);