1 write to _scrollData
PresentationFramework (1)
MS\Internal\Documents\FlowDocumentView.cs (1)
715
_scrollData
= new ScrollData();
92 references to _scrollData
PresentationFramework (92)
MS\Internal\Documents\FlowDocumentView.cs (92)
82
if (
_scrollData
!= null)
118
if (
_scrollData
!= null)
120
if (!DoubleUtil.AreClose(
_scrollData
.Viewport, safeArrangeSize))
122
_scrollData
.Viewport = safeArrangeSize;
126
if (!DoubleUtil.AreClose(
_scrollData
.Extent, _formatter.DocumentPage.Size))
128
_scrollData
.Extent = _formatter.DocumentPage.Size;
134
if (Math.Abs(
_scrollData
.ExtentWidth -
_scrollData
.ViewportWidth) < 1)
136
_scrollData
.ExtentWidth =
_scrollData
.ViewportWidth;
138
if (Math.Abs(
_scrollData
.ExtentHeight -
_scrollData
.ViewportHeight) < 1)
140
_scrollData
.ExtentHeight =
_scrollData
.ViewportHeight;
144
Math.Max(0, Math.Min(
_scrollData
.ExtentWidth -
_scrollData
.ViewportWidth,
_scrollData
.HorizontalOffset)),
145
Math.Max(0, Math.Min(
_scrollData
.ExtentHeight -
_scrollData
.ViewportHeight,
_scrollData
.VerticalOffset)));
146
if (!DoubleUtil.AreClose(offset,
_scrollData
.Offset))
148
_scrollData
.Offset = offset;
151
if (invalidateScrollInfo &&
_scrollData
.ScrollOwner != null)
153
_scrollData
.ScrollOwner.InvalidateScrollInfo();
155
viewport = new Rect(
_scrollData
.HorizontalOffset,
_scrollData
.VerticalOffset, safeArrangeSize.Width, safeArrangeSize.Height);
175
if (
_scrollData
!= null)
177
_pageVisual.Offset = new Vector(-
_scrollData
.HorizontalOffset, -
_scrollData
.VerticalOffset);
197
if (
_scrollData
!= null)
199
if (!DoubleUtil.AreClose(
_scrollData
.Viewport, safeArrangeSize))
201
_scrollData
.Viewport = safeArrangeSize;
204
if (!DoubleUtil.AreClose(
_scrollData
.Extent, new Size()))
206
_scrollData
.Extent = new Size();
209
if (!DoubleUtil.AreClose(
_scrollData
.Offset, new Vector()))
211
_scrollData
.Offset = new Vector();
214
if (invalidateScrollInfo &&
_scrollData
.ScrollOwner != null)
216
_scrollData
.ScrollOwner.InvalidateScrollInfo();
432
if (
_scrollData
!= null)
434
_scrollData
.LineUp(this);
443
if (
_scrollData
!= null)
445
_scrollData
.LineDown(this);
454
if (
_scrollData
!= null)
456
_scrollData
.LineLeft(this);
465
if (
_scrollData
!= null)
467
_scrollData
.LineRight(this);
476
if (
_scrollData
!= null)
478
_scrollData
.PageUp(this);
487
if (
_scrollData
!= null)
489
_scrollData
.PageDown(this);
498
if (
_scrollData
!= null)
500
_scrollData
.PageLeft(this);
509
if (
_scrollData
!= null)
511
_scrollData
.PageRight(this);
520
if (
_scrollData
!= null)
522
_scrollData
.MouseWheelUp(this);
531
if (
_scrollData
!= null)
533
_scrollData
.MouseWheelDown(this);
542
if (
_scrollData
!= null)
544
_scrollData
.MouseWheelLeft(this);
553
if (
_scrollData
!= null)
555
_scrollData
.MouseWheelRight(this);
564
if (
_scrollData
!= null)
566
_scrollData
.SetHorizontalOffset(this, offset);
575
if (
_scrollData
!= null)
577
_scrollData
.SetVerticalOffset(this, offset);
586
if (
_scrollData
== null)
592
rectangle =
_scrollData
.MakeVisible(this, visual, rectangle);
605
return (
_scrollData
!= null) ?
_scrollData
.CanVerticallyScroll : false;
609
if (
_scrollData
!= null)
611
_scrollData
.CanVerticallyScroll = value;
623
return (
_scrollData
!= null) ?
_scrollData
.CanHorizontallyScroll : false;
627
if (
_scrollData
!= null)
629
_scrollData
.CanHorizontallyScroll = value;
641
return (
_scrollData
!= null) ?
_scrollData
.ExtentWidth : 0;
652
return (
_scrollData
!= null) ?
_scrollData
.ExtentHeight : 0;
663
return (
_scrollData
!= null) ?
_scrollData
.ViewportWidth : 0;
674
return (
_scrollData
!= null) ?
_scrollData
.ViewportHeight : 0;
685
return (
_scrollData
!= null) ?
_scrollData
.HorizontalOffset : 0;
696
return (
_scrollData
!= null) ?
_scrollData
.VerticalOffset : 0;
707
return (
_scrollData
!= null) ?
_scrollData
.ScrollOwner : null;
712
if (
_scrollData
== null)
717
_scrollData
.SetScrollOwner(this, value);