8 writes to _lineIndexFirstVisual
PresentationFramework (8)
MS\Internal\PtsHost\TextParaClient.cs (8)
91
_lineIndexFirstVisual
= -1;
1435
_lineIndexFirstVisual
= -1;
1440
_lineIndexFirstVisual
= lineIndexToBeginRemoval;
1502
_lineIndexFirstVisual
= -1;
3438
_lineIndexFirstVisual
= -1;
3452
_lineIndexFirstVisual
= lineIndexFirstVisible;
3482
_lineIndexFirstVisual
= lineIndexFirstVisible;
3523
_lineIndexFirstVisual
= -1;
26 references to _lineIndexFirstVisual
PresentationFramework (26)
MS\Internal\PtsHost\TextParaClient.cs (26)
79
if(
_lineIndexFirstVisual
== -1 && lineContainerVisual.Children.Count > 0)
89
if(
_lineIndexFirstVisual
!= -1)
1396
else if (
_lineIndexFirstVisual
!= -1)
1408
int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval -
_lineIndexFirstVisual
, 0), lineVisuals.Count);
1422
if (lineIndexToBeginRemoval <
_lineIndexFirstVisual
)
1425
int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval -
_lineIndexFirstVisual
+ cLinesToRemove, 0), lineVisuals.Count);
1443
else if (lineIndexToBeginRemoval <
_lineIndexFirstVisual
+ lineVisuals.Count)
1453
int actualLinesToRemove = Math.Min(cLinesToRemove, lineVisuals.Count - (lineIndexToBeginRemoval -
_lineIndexFirstVisual
));
1455
lineVisuals.RemoveRange(lineIndexToBeginRemoval -
_lineIndexFirstVisual
, actualLinesToRemove);
1457
insertionIndex = lineIndexToBeginRemoval -
_lineIndexFirstVisual
; // Insertion index is relative to committed visual range
1833
if(
_lineIndexFirstVisual
!= -1)
1835
lineStart =
_lineIndexFirstVisual
;
2273
if (
_lineIndexFirstVisual
!= -1)
2275
visualIndex -=
_lineIndexFirstVisual
;
3376
else if (ContainedInRectOnV(ref viewport) &&
_lineIndexFirstVisual
== 0 && visualChildren.Count == textDetails.cLines)
3434
if (
_lineIndexFirstVisual
!= -1 && ((lineIndexFirstVisible >
_lineIndexFirstVisual
+ visualChildren.Count) ||
3435
(lineIndexFirstInvisible <
_lineIndexFirstVisual
)))
3442
if (
_lineIndexFirstVisual
== -1)
3454
else if (lineIndexFirstVisible !=
_lineIndexFirstVisual
|| (lineIndexFirstInvisible - lineIndexFirstVisible) != visualChildren.Count)
3462
if (lineIndexFirstVisible <
_lineIndexFirstVisual
)
3464
for (int index = lineIndexFirstVisible; index <
_lineIndexFirstVisual
; index++)
3474
else if (lineIndexFirstVisible !=
_lineIndexFirstVisual
)
3480
visualChildren.RemoveRange(0, lineIndexFirstVisible -
_lineIndexFirstVisual
);
3485
Debug.Assert(
_lineIndexFirstVisual
== lineIndexFirstVisible);
3504
for (int index =
_lineIndexFirstVisual
+ visualChildren.Count; index < lineIndexFirstInvisible; index++)