8 writes to _lineIndexFirstVisual
PresentationFramework (8)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (8)
109
_lineIndexFirstVisual
= -1;
1624
_lineIndexFirstVisual
= -1;
1629
_lineIndexFirstVisual
= lineIndexToBeginRemoval;
1691
_lineIndexFirstVisual
= -1;
3705
_lineIndexFirstVisual
= -1;
3719
_lineIndexFirstVisual
= lineIndexFirstVisible;
3749
_lineIndexFirstVisual
= lineIndexFirstVisible;
3790
_lineIndexFirstVisual
= -1;
26 references to _lineIndexFirstVisual
PresentationFramework (26)
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (26)
97
if(
_lineIndexFirstVisual
== -1 && lineContainerVisual.Children.Count > 0)
107
if(
_lineIndexFirstVisual
!= -1)
1585
else if (
_lineIndexFirstVisual
!= -1)
1597
int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval -
_lineIndexFirstVisual
, 0), lineVisuals.Count);
1611
if (lineIndexToBeginRemoval <
_lineIndexFirstVisual
)
1614
int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval -
_lineIndexFirstVisual
+ cLinesToRemove, 0), lineVisuals.Count);
1632
else if (lineIndexToBeginRemoval <
_lineIndexFirstVisual
+ lineVisuals.Count)
1642
int actualLinesToRemove = Math.Min(cLinesToRemove, lineVisuals.Count - (lineIndexToBeginRemoval -
_lineIndexFirstVisual
));
1644
lineVisuals.RemoveRange(lineIndexToBeginRemoval -
_lineIndexFirstVisual
, actualLinesToRemove);
1646
insertionIndex = lineIndexToBeginRemoval -
_lineIndexFirstVisual
; // Insertion index is relative to committed visual range
2048
if(
_lineIndexFirstVisual
!= -1)
2050
lineStart =
_lineIndexFirstVisual
;
2493
if (
_lineIndexFirstVisual
!= -1)
2495
visualIndex -=
_lineIndexFirstVisual
;
3643
else if (ContainedInRectOnV(ref viewport) &&
_lineIndexFirstVisual
== 0 && visualChildren.Count == textDetails.cLines)
3701
if (
_lineIndexFirstVisual
!= -1 && ((lineIndexFirstVisible >
_lineIndexFirstVisual
+ visualChildren.Count) ||
3702
(lineIndexFirstInvisible <
_lineIndexFirstVisual
)))
3709
if (
_lineIndexFirstVisual
== -1)
3721
else if (lineIndexFirstVisible !=
_lineIndexFirstVisual
|| (lineIndexFirstInvisible - lineIndexFirstVisible) != visualChildren.Count)
3729
if (lineIndexFirstVisible <
_lineIndexFirstVisual
)
3731
for (int index = lineIndexFirstVisible; index <
_lineIndexFirstVisual
; index++)
3741
else if (lineIndexFirstVisible !=
_lineIndexFirstVisual
)
3747
visualChildren.RemoveRange(0, lineIndexFirstVisible -
_lineIndexFirstVisual
);
3752
Debug.Assert(
_lineIndexFirstVisual
== lineIndexFirstVisible);
3771
for (int index =
_lineIndexFirstVisual
+ visualChildren.Count; index < lineIndexFirstInvisible; index++)