1 write to _scrollData
PresentationFramework (1)
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
720
_scrollData
= new ScrollData();
92 references to _scrollData
PresentationFramework (92)
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (92)
87
if (
_scrollData
!= null)
123
if (
_scrollData
!= null)
125
if (!DoubleUtil.AreClose(
_scrollData
.Viewport, safeArrangeSize))
127
_scrollData
.Viewport = safeArrangeSize;
131
if (!DoubleUtil.AreClose(
_scrollData
.Extent, _formatter.DocumentPage.Size))
133
_scrollData
.Extent = _formatter.DocumentPage.Size;
139
if (Math.Abs(
_scrollData
.ExtentWidth -
_scrollData
.ViewportWidth) < 1)
141
_scrollData
.ExtentWidth =
_scrollData
.ViewportWidth;
143
if (Math.Abs(
_scrollData
.ExtentHeight -
_scrollData
.ViewportHeight) < 1)
145
_scrollData
.ExtentHeight =
_scrollData
.ViewportHeight;
149
Math.Max(0, Math.Min(
_scrollData
.ExtentWidth -
_scrollData
.ViewportWidth,
_scrollData
.HorizontalOffset)),
150
Math.Max(0, Math.Min(
_scrollData
.ExtentHeight -
_scrollData
.ViewportHeight,
_scrollData
.VerticalOffset)));
151
if (!DoubleUtil.AreClose(offset,
_scrollData
.Offset))
153
_scrollData
.Offset = offset;
156
if (invalidateScrollInfo &&
_scrollData
.ScrollOwner != null)
158
_scrollData
.ScrollOwner.InvalidateScrollInfo();
160
viewport = new Rect(
_scrollData
.HorizontalOffset,
_scrollData
.VerticalOffset, safeArrangeSize.Width, safeArrangeSize.Height);
180
if (
_scrollData
!= null)
182
_pageVisual.Offset = new Vector(-
_scrollData
.HorizontalOffset, -
_scrollData
.VerticalOffset);
202
if (
_scrollData
!= null)
204
if (!DoubleUtil.AreClose(
_scrollData
.Viewport, safeArrangeSize))
206
_scrollData
.Viewport = safeArrangeSize;
209
if (!DoubleUtil.AreClose(
_scrollData
.Extent, new Size()))
211
_scrollData
.Extent = new Size();
214
if (!DoubleUtil.AreClose(
_scrollData
.Offset, new Vector()))
216
_scrollData
.Offset = new Vector();
219
if (invalidateScrollInfo &&
_scrollData
.ScrollOwner != null)
221
_scrollData
.ScrollOwner.InvalidateScrollInfo();
437
if (
_scrollData
!= null)
439
_scrollData
.LineUp(this);
448
if (
_scrollData
!= null)
450
_scrollData
.LineDown(this);
459
if (
_scrollData
!= null)
461
_scrollData
.LineLeft(this);
470
if (
_scrollData
!= null)
472
_scrollData
.LineRight(this);
481
if (
_scrollData
!= null)
483
_scrollData
.PageUp(this);
492
if (
_scrollData
!= null)
494
_scrollData
.PageDown(this);
503
if (
_scrollData
!= null)
505
_scrollData
.PageLeft(this);
514
if (
_scrollData
!= null)
516
_scrollData
.PageRight(this);
525
if (
_scrollData
!= null)
527
_scrollData
.MouseWheelUp(this);
536
if (
_scrollData
!= null)
538
_scrollData
.MouseWheelDown(this);
547
if (
_scrollData
!= null)
549
_scrollData
.MouseWheelLeft(this);
558
if (
_scrollData
!= null)
560
_scrollData
.MouseWheelRight(this);
569
if (
_scrollData
!= null)
571
_scrollData
.SetHorizontalOffset(this, offset);
580
if (
_scrollData
!= null)
582
_scrollData
.SetVerticalOffset(this, offset);
591
if (
_scrollData
== null)
597
rectangle =
_scrollData
.MakeVisible(this, visual, rectangle);
610
return (
_scrollData
!= null) ?
_scrollData
.CanVerticallyScroll : false;
614
if (
_scrollData
!= null)
616
_scrollData
.CanVerticallyScroll = value;
628
return (
_scrollData
!= null) ?
_scrollData
.CanHorizontallyScroll : false;
632
if (
_scrollData
!= null)
634
_scrollData
.CanHorizontallyScroll = value;
646
return (
_scrollData
!= null) ?
_scrollData
.ExtentWidth : 0;
657
return (
_scrollData
!= null) ?
_scrollData
.ExtentHeight : 0;
668
return (
_scrollData
!= null) ?
_scrollData
.ViewportWidth : 0;
679
return (
_scrollData
!= null) ?
_scrollData
.ViewportHeight : 0;
690
return (
_scrollData
!= null) ?
_scrollData
.HorizontalOffset : 0;
701
return (
_scrollData
!= null) ?
_scrollData
.VerticalOffset : 0;
712
return (
_scrollData
!= null) ?
_scrollData
.ScrollOwner : null;
717
if (
_scrollData
== null)
722
_scrollData
.SetScrollOwner(this, value);