33 references to EndOffset
PresentationFramework (33)
MS\Internal\Documents\TextBoxView.cs (33)
457
_lineMetrics.Count == 1 && _lineMetrics[0].
EndOffset
== 0)
697
int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].
EndOffset
, startPosition.Offset);
698
int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].
EndOffset
, endPosition.Offset);
717
_lineMetrics[firstLineIndex].
EndOffset
> endOffset;
719
_lineMetrics[lastLineIndex].
EndOffset
> endOffset;
745
ITextPointer endOfLinePosition = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[lineIndex].
EndOffset
, LogicalDirection.Backward);
890
if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].
EndOffset
&&
1107
int lastValidOffset = _lineMetrics[_lineMetrics.Count - 1].
EndOffset
;
1119
int newLastValidOffset = _lineMetrics[_lineMetrics.Count - 1].
EndOffset
;
1195
else if (offset > record.
EndOffset
)
1201
if (offset == record.
EndOffset
&& index < _lineMetrics.Count - 1)
1308
ITextPointer end = _host.TextContainer.CreatePointerAtOffset(_lineMetrics[_lineMetrics.Count - 1].
EndOffset
, LogicalDirection.Forward);
2050
int endOffset = Math.Min(_lineMetrics[lineIndex].
EndOffset
, unclippedEndOffset);
2057
if (unclippedStartOffset == _lineMetrics[lineIndex].
EndOffset
)
2102
if (unclippedEndOffset >= _lineMetrics[lineIndex].
EndOffset
)
2136
int lineEndOffset = _lineMetrics[lineIndex].
EndOffset
;
2153
if (unclippedStartOffset == _lineMetrics[lineIndex].
EndOffset
)
2181
if (unclippedEndOffset >= _lineMetrics[lineIndex].
EndOffset
)
2243
lineOffset = _lineMetrics[_lineMetrics.Count - 1].
EndOffset
;
2333
if (range.StartIndex > _lineMetrics[_lineMetrics.Count - 1].
EndOffset
)
2353
if (range.StartIndex > _lineMetrics[_lineMetrics.Count - 1].
EndOffset
)
2451
if (endOffset > _lineMetrics[_lineMetrics.Count - 1].
EndOffset
)
2454
endOffset = _lineMetrics[_lineMetrics.Count - 1].
EndOffset
;
2495
(range.StartIndex > lineOffset || range.StartIndex + -delta < _lineMetrics[lineIndex].
EndOffset
))
2528
int originalEndOffset = _lineMetrics[lineIndex].
EndOffset
;
2542
if (originalEndOffset != _lineMetrics[lineIndex].
EndOffset
)
2564
lineOffset >= _lineMetrics[lineIndex].
EndOffset
)
2597
Invariant.Assert(lineOffset < _lineMetrics[lineIndex].
EndOffset
);
2610
&& curLine.
EndOffset
== record.
EndOffset
2624
offsetSyncOk |= lastCoveredCharOffset <= record.
EndOffset
&& line.HasLineBreak;
2926
_lineMetrics[_lineMetrics.Count - 1].
EndOffset
>= position.Offset;
2988
int viewportEnd = _lineMetrics[lastLineIndex].
EndOffset
;