54 references to FirstCharacterIndex
PresentationCore (26)
MS\Internal\TextFormatting\FullTextLine.cs (10)
993
if (characterHit.
FirstCharacterIndex
>= _cpFirst + _metrics._cchLength)
1001
&& characterHit.
FirstCharacterIndex
>= _collapsedRange.TextSourceCharacterIndex
1007
if ( characterHit.
FirstCharacterIndex
>= _collapsedRange.TextSourceCharacterIndex + _collapsedRange.Length
1024
int lscpCurrent = GetInternalCp(characterHit.
FirstCharacterIndex
);
1144
characterHit.
FirstCharacterIndex
,
1156
if (caretStopIndex <= characterHit.
FirstCharacterIndex
&& characterHit.TrailingLength != 0)
1233
if ( characterHit.
FirstCharacterIndex
== _cpFirst
1244
characterHit.
FirstCharacterIndex
,
1259
&& caretStopIndex >= characterHit.
FirstCharacterIndex
2211
return _cpFirst + _metrics._cchLength - characterHit.
FirstCharacterIndex
- characterHit.TrailingLength;
MS\Internal\TextFormatting\SimpleTextLine.cs (5)
667
first += runIndex.
FirstCharacterIndex
;
692
return DistanceFromCp(characterHit.
FirstCharacterIndex
+ (characterHit.TrailingLength != 0 ? 1 : 0));
711
navigableCpFound = FindNextVisibleCp(characterHit.
FirstCharacterIndex
, out nextVisisbleCp);
719
navigableCpFound = FindNextVisibleCp(characterHit.
FirstCharacterIndex
+ 1, out nextVisisbleCp);
744
int cpHit = characterHit.
FirstCharacterIndex
;
MS\Internal\TextFormatting\TextFormatterImp.cs (2)
482
ArgumentOutOfRangeException.ThrowIfGreaterThan(cpFirst, characterHit.
FirstCharacterIndex
);
483
ArgumentOutOfRangeException.ThrowIfLessThan(cpFirst, characterHit.
FirstCharacterIndex
- cchLength);
System\Windows\Media\GlyphRun.cs (9)
497
if (characterHit.
FirstCharacterIndex
< 0 || characterHit.
FirstCharacterIndex
> CodepointCount)
502
characterHit.
FirstCharacterIndex
,
723
if (characterHit.
FirstCharacterIndex
< 0 || characterHit.
FirstCharacterIndex
> CodepointCount)
728
characterHit.
FirstCharacterIndex
,
770
if (characterHit.
FirstCharacterIndex
< 0 || characterHit.
FirstCharacterIndex
> CodepointCount)
775
characterHit.
FirstCharacterIndex
,
PresentationFramework (28)
MS\Internal\Documents\TextBoxView.cs (6)
888
if (nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].EndOffset &&
902
else if (nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset &&
921
ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength, logicalDirection);
951
if (backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset)
969
ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength, logicalDirection);
1763
return _host.TextContainer.CreatePointerAtOffset(charIndex.
FirstCharacterIndex
+ charIndex.TrailingLength, logicalDirection);
MS\Internal\PtsHost\Line.cs (1)
601
cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.
FirstCharacterIndex
+ charIndex.TrailingLength;
MS\Internal\PtsHost\TextParaClient.cs (11)
1083
int cpPosition = charHit.
FirstCharacterIndex
+ charHit.TrailingLength;
2662
if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == lineDesc.dcpLim) && direction == LogicalDirection.Forward)
2675
else if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == lineDesc.dcpFirst) && direction == LogicalDirection.Backward)
2692
nextCaretPosition = GetTextPosition(nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength, logicalDirection);
2825
if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == element.dcpLim) && direction == LogicalDirection.Forward)
2839
else if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == element.dcpFirst) && direction == LogicalDirection.Backward)
2857
nextCaretPosition = GetTextPosition(nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength, logicalDirection);
2932
if (backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength == lineDesc.dcpFirst)
2949
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength, logicalDirection);
3058
if (backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength == element.dcpFirst)
3075
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength, logicalDirection);
MS\Internal\Text\ComplexLine.cs (1)
555
int offset = charHit.
FirstCharacterIndex
+ charHit.TrailingLength;
System\Windows\Controls\TextBlock.cs (6)
2147
pos = _complexContent.TextContainer.Start.CreatePointer(charIndex.
FirstCharacterIndex
+ charIndex.TrailingLength, logicalDirection);
2524
if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward)
2537
else if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == dcp) && direction == LogicalDirection.Backward)
2554
ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength, logicalDirection);
2625
if (backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength == dcp)
2642
ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength, logicalDirection);
System\Windows\Documents\FixedTextView.cs (2)
535
int index = next.
FirstCharacterIndex
+ next.TrailingLength;
810
charIndex = hit.
FirstCharacterIndex
+ hit.TrailingLength;
System\Windows\Documents\RubberbandSelector.cs (1)
482
return hit.
FirstCharacterIndex
+ hit.TrailingLength;