8 writes to _lineIndexFirstVisual
PresentationFramework (8)
MS\Internal\PtsHost\TextParaClient.cs (8)
97
_lineIndexFirstVisual
= -1;
1441
_lineIndexFirstVisual
= -1;
1446
_lineIndexFirstVisual
= lineIndexToBeginRemoval;
1508
_lineIndexFirstVisual
= -1;
3444
_lineIndexFirstVisual
= -1;
3458
_lineIndexFirstVisual
= lineIndexFirstVisible;
3488
_lineIndexFirstVisual
= lineIndexFirstVisible;
3529
_lineIndexFirstVisual
= -1;
26 references to _lineIndexFirstVisual
PresentationFramework (26)
MS\Internal\PtsHost\TextParaClient.cs (26)
85
if(
_lineIndexFirstVisual
== -1 && lineContainerVisual.Children.Count > 0)
95
if(
_lineIndexFirstVisual
!= -1)
1402
else if (
_lineIndexFirstVisual
!= -1)
1414
int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval -
_lineIndexFirstVisual
, 0), lineVisuals.Count);
1428
if (lineIndexToBeginRemoval <
_lineIndexFirstVisual
)
1431
int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval -
_lineIndexFirstVisual
+ cLinesToRemove, 0), lineVisuals.Count);
1449
else if (lineIndexToBeginRemoval <
_lineIndexFirstVisual
+ lineVisuals.Count)
1459
int actualLinesToRemove = Math.Min(cLinesToRemove, lineVisuals.Count - (lineIndexToBeginRemoval -
_lineIndexFirstVisual
));
1461
lineVisuals.RemoveRange(lineIndexToBeginRemoval -
_lineIndexFirstVisual
, actualLinesToRemove);
1463
insertionIndex = lineIndexToBeginRemoval -
_lineIndexFirstVisual
; // Insertion index is relative to committed visual range
1839
if(
_lineIndexFirstVisual
!= -1)
1841
lineStart =
_lineIndexFirstVisual
;
2279
if (
_lineIndexFirstVisual
!= -1)
2281
visualIndex -=
_lineIndexFirstVisual
;
3382
else if (ContainedInRectOnV(ref viewport) &&
_lineIndexFirstVisual
== 0 && visualChildren.Count == textDetails.cLines)
3440
if (
_lineIndexFirstVisual
!= -1 && ((lineIndexFirstVisible >
_lineIndexFirstVisual
+ visualChildren.Count) ||
3441
(lineIndexFirstInvisible <
_lineIndexFirstVisual
)))
3448
if (
_lineIndexFirstVisual
== -1)
3460
else if (lineIndexFirstVisible !=
_lineIndexFirstVisual
|| (lineIndexFirstInvisible - lineIndexFirstVisible) != visualChildren.Count)
3468
if (lineIndexFirstVisible <
_lineIndexFirstVisual
)
3470
for (int index = lineIndexFirstVisible; index <
_lineIndexFirstVisual
; index++)
3480
else if (lineIndexFirstVisible !=
_lineIndexFirstVisual
)
3486
visualChildren.RemoveRange(0, lineIndexFirstVisible -
_lineIndexFirstVisual
);
3491
Debug.Assert(
_lineIndexFirstVisual
== lineIndexFirstVisible);
3510
for (int index =
_lineIndexFirstVisual
+ visualChildren.Count; index < lineIndexFirstInvisible; index++)