6 types derived from ScrollBar
System.Windows.Forms (2)
System\Windows\Forms\Scrolling\HScrollBar.cs (1)
11
public partial class HScrollBar :
ScrollBar
System\Windows\Forms\Scrolling\VScrollBar.cs (1)
13
public partial class VScrollBar :
ScrollBar
System.Windows.Forms.Tests (4)
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (1)
189
private class SubScrollBar :
ScrollBar
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (1)
103
private class SubScrollBar :
ScrollBar
System\Windows\Forms\ScrollBarTests.cs (2)
3143
private class VerticalScrollBar :
ScrollBar
3158
private class SubScrollBar :
ScrollBar
128 references to ScrollBar
System.Windows.Forms (44)
System\Windows\Forms\Controls\DataGridView\DataGridView.cs (2)
2776
protected
ScrollBar
HorizontalScrollBar => _horizScrollBar;
4114
protected
ScrollBar
VerticalScrollBar => _vertScrollBar;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
16470
ScrollBar
sb = (verticalScroll ? _vertScrollBar : _horizScrollBar);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
461
private
ScrollBar
ScrollBar
System\Windows\Forms\Printing\PrintPreviewControl.cs (1)
870
void AdjustScroll(
ScrollBar
scrollBar, int virtualDimension, int displayDimension, int offset)
System\Windows\Forms\Printing\PrintPreviewControl.ScrollBarAccessibleObject.cs (4)
10
internal sealed class ScrollBarAccessibleObject :
ScrollBar
.ScrollBarAccessibleObject
12
public ScrollBarAccessibleObject(
ScrollBar
owner) : base(owner)
17
this.TryGetOwnerAs(out
ScrollBar
? scrollBar) && scrollBar.Parent is PrintPreviewControl printPreviewControl
25
if (!this.TryGetOwnerAs(out
ScrollBar
? scrollBar) || scrollBar.Parent is not PrintPreviewControl printPreviewControl)
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
928
/// Raises the <see cref="
ScrollBar
.OnScroll"/> event.
System\Windows\Forms\Scrolling\ScrollBar.cs (3)
30
/// Initializes a new instance of the <see cref="
ScrollBar
"/> class.
755
/// Creates a new AccessibleObject for this <see cref="
ScrollBar
"/> instance.
759
/// AccessibleObject for this <see cref="
ScrollBar
"/> instance.
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarAccessibleObject.cs (17)
19
internal ScrollBarAccessibleObject(
ScrollBar
owningScrollBar) : base(owningScrollBar)
24
=> _firstLineButtonAccessibleObject ??= this.TryGetOwnerAs(out
ScrollBar
? owner) ? new(owner) : null;
27
=> _firstPageButtonAccessibleObject ??= this.TryGetOwnerAs(out
ScrollBar
? owner) ? new(owner) : null;
32
=> _lastLineButtonAccessibleObject ??= this.TryGetOwnerAs(out
ScrollBar
? owner) ? new(owner) : null;
35
=> _lastPageButtonAccessibleObject ??= this.TryGetOwnerAs(out
ScrollBar
? owner) ? new(owner) : null;
38
=> _thumbAccessibleObject ??= this.TryGetOwnerAs(out
ScrollBar
? owner) ? new(owner) : null;
43
internal int UIMaximum => this.TryGetOwnerAs(out
ScrollBar
? owner) ? owner.Maximum - owner.LargeChange + 1 : 0;
55
if (!this.IsOwnerHandleCreated(out
ScrollBar
? _))
78
=> this.IsOwnerHandleCreated(out
ScrollBar
? _)
86
if (!this.IsOwnerHandleCreated(out
ScrollBar
? _))
145
UIA_PROPERTY_ID.UIA_HasKeyboardFocusPropertyId => (VARIANT)(this.TryGetOwnerAs(out
ScrollBar
? owner) && owner.Focused),
158
internal override double RangeValue => this.TryGetOwnerAs(out
ScrollBar
? owner) ? owner.Value : base.RangeValue;
160
internal override double LargeChange => this.TryGetOwnerAs(out
ScrollBar
? owner) ? owner.LargeChange : base.LargeChange;
162
internal override double SmallChange => this.TryGetOwnerAs(out
ScrollBar
? owner) ? owner.SmallChange : base.SmallChange;
164
internal override double Maximum => this.TryGetOwnerAs(out
ScrollBar
? owner) ? owner.Maximum : base.Maximum;
166
internal override double Minimum => this.TryGetOwnerAs(out
ScrollBar
? owner) ? owner.Minimum : base.Minimum;
172
if (!this.IsOwnerHandleCreated(out
ScrollBar
? owner))
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarChildAccessibleObject.cs (2)
14
internal
ScrollBar
OwningScrollBar { get; private set; }
16
public ScrollBarChildAccessibleObject(
ScrollBar
owningScrollBar)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarFirstLineButtonAccessibleObject.cs (1)
12
public ScrollBarFirstLineButtonAccessibleObject(
ScrollBar
owningScrollBar) : base(owningScrollBar)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarFirstPageButtonAccessibleObject.cs (1)
12
public ScrollBarFirstPageButtonAccessibleObject(
ScrollBar
owningScrollBar) : base(owningScrollBar)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarLastLineButtonAccessibleObject.cs (1)
12
public ScrollBarLastLineButtonAccessibleObject(
ScrollBar
owningScrollBar) : base(owningScrollBar)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarLastPageButtonAccessibleObject.cs (1)
12
public ScrollBarLastPageButtonAccessibleObject(
ScrollBar
owningScrollBar) : base(owningScrollBar)
System\Windows\Forms\Scrolling\ScrollBar.ScrollBarThumbAccessibleObject.cs (1)
13
public ScrollBarThumbAccessibleObject(
ScrollBar
owningScrollBar) : base(owningScrollBar)
System\Windows\Forms\Scrolling\ScrollEventArgs.cs (1)
7
/// Provides data for the <see cref="
ScrollBar
.Scroll"/>
System\Windows\Forms\Scrolling\ScrollEventHandler.cs (1)
7
/// Represents a method that handles the <c>Scroll</c> event of a <see cref="
ScrollBar
"/>,
System\Windows\Forms\Scrolling\ScrollEventType.cs (3)
7
/// Specifies the type of action used to raise the <see cref="
ScrollBar
.Scroll"/> event.
46
/// The scroll box was moved to the <see cref="
ScrollBar
.Minimum"/>
52
/// The scroll box was moved to the <see cref="
ScrollBar
.Maximum"/>
System\Windows\Forms\Scrolling\ScrollOrientation.cs (1)
7
/// Provides data for the <see cref="
ScrollBar
.Scroll"/>
System\Windows\Forms\Scrolling\ScrollProperties.cs (1)
178
/// Gets or sets the value to be added or subtracted to the <see cref="
ScrollBar
.Value"/>
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\ByteViewerTests.cs (4)
804
ScrollBar
scrollBar = control.Controls.OfType<
ScrollBar
>().Single();
834
ScrollBar
scrollBar = control.Controls.OfType<
ScrollBar
>().Single();
System.Windows.Forms.Tests (80)
System\Windows\Forms\AccessibleObjects\HScrollBar.HScrollBarAccessibleObjectTests.cs (1)
8
using static System.Windows.Forms.
ScrollBar
;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (7)
7
using static System.Windows.Forms.
ScrollBar
;
142
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
158
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
174
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
190
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
354
private ScrollBarFirstLineButtonAccessibleObject GetFirstLineButton(
ScrollBar
scrollBar)
356
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (6)
7
using static System.Windows.Forms.
ScrollBar
;
164
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
182
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
198
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
392
private ScrollBarFirstPageButtonAccessibleObject GetFirstPageButton(
ScrollBar
scrollBar)
394
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (7)
7
using static System.Windows.Forms.
ScrollBar
;
152
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
168
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
184
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
200
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
364
private ScrollBarLastLineButtonAccessibleObject GetLastLineButton(
ScrollBar
scrollBar)
366
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (6)
7
using static System.Windows.Forms.
ScrollBar
;
153
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
169
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
185
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
379
private ScrollBarLastPageButtonAccessibleObject GetLastPageButton(
ScrollBar
scrollBar)
381
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\HScrollBar.ScrollBarThumbAccessibleObjectTests.cs (7)
7
using static System.Windows.Forms.
ScrollBar
;
141
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
157
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
173
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
189
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
284
private ScrollBarThumbAccessibleObject GetThumb(
ScrollBar
scrollBar)
286
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarAccessibleObjectTests.cs (5)
14
Assert.Throws<ArgumentNullException>(() => new
ScrollBar
.ScrollBarAccessibleObject(null));
68
var scrollBarAccessibleObject = new
ScrollBar
.ScrollBarAccessibleObject(scrollBar);
94
using
ScrollBar
scrollBar = new SubScrollBar();
151
ScrollBar
.ScrollBarAccessibleObject accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ScrollBar.ScrollBarChildAccessibleObjectTests.cs (1)
6
using static System.Windows.Forms.
ScrollBar
;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstLineButtonAccessibleObjectTests.cs (7)
7
using static System.Windows.Forms.
ScrollBar
;
142
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
158
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
174
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
190
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
338
private ScrollBarFirstLineButtonAccessibleObject GetFirstLineButton(
ScrollBar
scrollBar)
340
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarFirstPageButtonAccessibleObjectTests.cs (6)
7
using static System.Windows.Forms.
ScrollBar
;
164
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
182
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
198
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
376
private ScrollBarFirstPageButtonAccessibleObject GetFirstPageButton(
ScrollBar
scrollBar)
378
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastLineButtonAccessibleObjectTests.cs (7)
7
using static System.Windows.Forms.
ScrollBar
;
152
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
168
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
184
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
200
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
348
private ScrollBarLastLineButtonAccessibleObject GetLastLineButton(
ScrollBar
scrollBar)
350
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarLastPageButtonAccessibleObjectTests.cs (6)
7
using static System.Windows.Forms.
ScrollBar
;
153
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
169
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
185
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
363
private ScrollBarLastPageButtonAccessibleObject GetLastPageButton(
ScrollBar
scrollBar)
365
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.ScrollBarThumbAccessibleObjectTests.cs (7)
7
using static System.Windows.Forms.
ScrollBar
;
141
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
157
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
173
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
189
var scrollBarAccessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
284
private ScrollBarThumbAccessibleObject GetThumb(
ScrollBar
scrollBar)
286
var accessibleObject = (
ScrollBar
.ScrollBarAccessibleObject)scrollBar.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\VScrollBar.VScrollBarAccessibleObjectTests.cs (1)
7
using static System.Windows.Forms.
ScrollBar
;
System\Windows\Forms\Printing\PrintPreviewControl.PrintPreviewControlAccessibilityObjectTests.cs (2)
189
public new
ScrollBar
VerticalScrollBar
192
public new
ScrollBar
HorizontalScrollBar
System\Windows\Forms\ScrollBarTests.cs (4)
3118
private
ScrollBar
.ScrollBarFirstPageButtonAccessibleObject VFirstPageButton(VScrollBar vScrollBar)
3121
private
ScrollBar
.ScrollBarLastPageButtonAccessibleObject VLastPageButton(VScrollBar vScrollBar)
3137
private
ScrollBar
.ScrollBarFirstPageButtonAccessibleObject HFirstPageButton(HScrollBar hScrollBar)
3140
private
ScrollBar
.ScrollBarLastPageButtonAccessibleObject HLastPageButton(HScrollBar hScrollBar)