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)
79if(_lineIndexFirstVisual == -1 && lineContainerVisual.Children.Count > 0) 89if(_lineIndexFirstVisual != -1) 1396else if (_lineIndexFirstVisual != -1) 1408int countVisualsShiftBeforeChange = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual, 0), lineVisuals.Count); 1422if (lineIndexToBeginRemoval < _lineIndexFirstVisual) 1425int actualLinesToRemove = Math.Min(Math.Max(lineIndexToBeginRemoval - _lineIndexFirstVisual + cLinesToRemove, 0), lineVisuals.Count); 1443else if (lineIndexToBeginRemoval < _lineIndexFirstVisual + lineVisuals.Count) 1453int actualLinesToRemove = Math.Min(cLinesToRemove, lineVisuals.Count - (lineIndexToBeginRemoval - _lineIndexFirstVisual)); 1455lineVisuals.RemoveRange(lineIndexToBeginRemoval - _lineIndexFirstVisual, actualLinesToRemove); 1457insertionIndex = lineIndexToBeginRemoval - _lineIndexFirstVisual; // Insertion index is relative to committed visual range 1833if(_lineIndexFirstVisual != -1) 1835lineStart = _lineIndexFirstVisual; 2273if (_lineIndexFirstVisual != -1) 2275visualIndex -= _lineIndexFirstVisual; 3376else if (ContainedInRectOnV(ref viewport) && _lineIndexFirstVisual == 0 && visualChildren.Count == textDetails.cLines) 3434if (_lineIndexFirstVisual != -1 && ((lineIndexFirstVisible > _lineIndexFirstVisual + visualChildren.Count) || 3435(lineIndexFirstInvisible < _lineIndexFirstVisual))) 3442if (_lineIndexFirstVisual == -1) 3454else if (lineIndexFirstVisible != _lineIndexFirstVisual || (lineIndexFirstInvisible - lineIndexFirstVisible) != visualChildren.Count) 3462if (lineIndexFirstVisible < _lineIndexFirstVisual) 3464for (int index = lineIndexFirstVisible; index < _lineIndexFirstVisual; index++) 3474else if (lineIndexFirstVisible != _lineIndexFirstVisual) 3480visualChildren.RemoveRange(0, lineIndexFirstVisible - _lineIndexFirstVisual); 3485Debug.Assert(_lineIndexFirstVisual == lineIndexFirstVisible); 3504for (int index = _lineIndexFirstVisual + visualChildren.Count; index < lineIndexFirstInvisible; index++)