1 write to _scrollData
PresentationFramework (1)
MS\Internal\Documents\FlowDocumentView.cs (1)
713
_scrollData
= new ScrollData();
92 references to _scrollData
PresentationFramework (92)
MS\Internal\Documents\FlowDocumentView.cs (92)
80
if (
_scrollData
!= null)
116
if (
_scrollData
!= null)
118
if (!DoubleUtil.AreClose(
_scrollData
.Viewport, safeArrangeSize))
120
_scrollData
.Viewport = safeArrangeSize;
124
if (!DoubleUtil.AreClose(
_scrollData
.Extent, _formatter.DocumentPage.Size))
126
_scrollData
.Extent = _formatter.DocumentPage.Size;
132
if (Math.Abs(
_scrollData
.ExtentWidth -
_scrollData
.ViewportWidth) < 1)
134
_scrollData
.ExtentWidth =
_scrollData
.ViewportWidth;
136
if (Math.Abs(
_scrollData
.ExtentHeight -
_scrollData
.ViewportHeight) < 1)
138
_scrollData
.ExtentHeight =
_scrollData
.ViewportHeight;
142
Math.Max(0, Math.Min(
_scrollData
.ExtentWidth -
_scrollData
.ViewportWidth,
_scrollData
.HorizontalOffset)),
143
Math.Max(0, Math.Min(
_scrollData
.ExtentHeight -
_scrollData
.ViewportHeight,
_scrollData
.VerticalOffset)));
144
if (!DoubleUtil.AreClose(offset,
_scrollData
.Offset))
146
_scrollData
.Offset = offset;
149
if (invalidateScrollInfo &&
_scrollData
.ScrollOwner != null)
151
_scrollData
.ScrollOwner.InvalidateScrollInfo();
153
viewport = new Rect(
_scrollData
.HorizontalOffset,
_scrollData
.VerticalOffset, safeArrangeSize.Width, safeArrangeSize.Height);
173
if (
_scrollData
!= null)
175
_pageVisual.Offset = new Vector(-
_scrollData
.HorizontalOffset, -
_scrollData
.VerticalOffset);
195
if (
_scrollData
!= null)
197
if (!DoubleUtil.AreClose(
_scrollData
.Viewport, safeArrangeSize))
199
_scrollData
.Viewport = safeArrangeSize;
202
if (!DoubleUtil.AreClose(
_scrollData
.Extent, new Size()))
204
_scrollData
.Extent = new Size();
207
if (!DoubleUtil.AreClose(
_scrollData
.Offset, new Vector()))
209
_scrollData
.Offset = new Vector();
212
if (invalidateScrollInfo &&
_scrollData
.ScrollOwner != null)
214
_scrollData
.ScrollOwner.InvalidateScrollInfo();
430
if (
_scrollData
!= null)
432
_scrollData
.LineUp(this);
441
if (
_scrollData
!= null)
443
_scrollData
.LineDown(this);
452
if (
_scrollData
!= null)
454
_scrollData
.LineLeft(this);
463
if (
_scrollData
!= null)
465
_scrollData
.LineRight(this);
474
if (
_scrollData
!= null)
476
_scrollData
.PageUp(this);
485
if (
_scrollData
!= null)
487
_scrollData
.PageDown(this);
496
if (
_scrollData
!= null)
498
_scrollData
.PageLeft(this);
507
if (
_scrollData
!= null)
509
_scrollData
.PageRight(this);
518
if (
_scrollData
!= null)
520
_scrollData
.MouseWheelUp(this);
529
if (
_scrollData
!= null)
531
_scrollData
.MouseWheelDown(this);
540
if (
_scrollData
!= null)
542
_scrollData
.MouseWheelLeft(this);
551
if (
_scrollData
!= null)
553
_scrollData
.MouseWheelRight(this);
562
if (
_scrollData
!= null)
564
_scrollData
.SetHorizontalOffset(this, offset);
573
if (
_scrollData
!= null)
575
_scrollData
.SetVerticalOffset(this, offset);
584
if (
_scrollData
== null)
590
rectangle =
_scrollData
.MakeVisible(this, visual, rectangle);
603
return (
_scrollData
!= null) ?
_scrollData
.CanVerticallyScroll : false;
607
if (
_scrollData
!= null)
609
_scrollData
.CanVerticallyScroll = value;
621
return (
_scrollData
!= null) ?
_scrollData
.CanHorizontallyScroll : false;
625
if (
_scrollData
!= null)
627
_scrollData
.CanHorizontallyScroll = value;
639
return (
_scrollData
!= null) ?
_scrollData
.ExtentWidth : 0;
650
return (
_scrollData
!= null) ?
_scrollData
.ExtentHeight : 0;
661
return (
_scrollData
!= null) ?
_scrollData
.ViewportWidth : 0;
672
return (
_scrollData
!= null) ?
_scrollData
.ViewportHeight : 0;
683
return (
_scrollData
!= null) ?
_scrollData
.HorizontalOffset : 0;
694
return (
_scrollData
!= null) ?
_scrollData
.VerticalOffset : 0;
705
return (
_scrollData
!= null) ?
_scrollData
.ScrollOwner : null;
710
if (
_scrollData
== null)
715
_scrollData
.SetScrollOwner(this, value);