54 references to FirstCharacterIndex
PresentationCore (26)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (10)
1041
if (characterHit.
FirstCharacterIndex
>= _cpFirst + _metrics._cchLength)
1049
&& characterHit.
FirstCharacterIndex
>= _collapsedRange.TextSourceCharacterIndex
1055
if ( characterHit.
FirstCharacterIndex
>= _collapsedRange.TextSourceCharacterIndex + _collapsedRange.Length
1072
int lscpCurrent = GetInternalCp(characterHit.
FirstCharacterIndex
);
1192
characterHit.
FirstCharacterIndex
,
1204
if (caretStopIndex <= characterHit.
FirstCharacterIndex
&& characterHit.TrailingLength != 0)
1281
if ( characterHit.
FirstCharacterIndex
== _cpFirst
1292
characterHit.
FirstCharacterIndex
,
1307
&& caretStopIndex >= characterHit.
FirstCharacterIndex
2274
return _cpFirst + _metrics._cchLength - characterHit.
FirstCharacterIndex
- characterHit.TrailingLength;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (5)
683
first += runIndex.
FirstCharacterIndex
;
708
return DistanceFromCp(characterHit.
FirstCharacterIndex
+ (characterHit.TrailingLength != 0 ? 1 : 0));
727
navigableCpFound = FindNextVisibleCp(characterHit.
FirstCharacterIndex
, out nextVisisbleCp);
735
navigableCpFound = FindNextVisibleCp(characterHit.
FirstCharacterIndex
+ 1, out nextVisisbleCp);
760
int cpHit = characterHit.
FirstCharacterIndex
;
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (2)
528
if ( characterHit.
FirstCharacterIndex
< cpFirst
529
|| characterHit.
FirstCharacterIndex
> cpFirst + cchLength)
Core\CSharp\System\Windows\Media\GlyphRun.cs (9)
519
if (characterHit.
FirstCharacterIndex
< 0 || characterHit.
FirstCharacterIndex
> CodepointCount)
524
characterHit.
FirstCharacterIndex
,
745
if (characterHit.
FirstCharacterIndex
< 0 || characterHit.
FirstCharacterIndex
> CodepointCount)
750
characterHit.
FirstCharacterIndex
,
792
if (characterHit.
FirstCharacterIndex
< 0 || characterHit.
FirstCharacterIndex
> CodepointCount)
797
characterHit.
FirstCharacterIndex
,
PresentationFramework (28)
src\Framework\MS\Internal\Documents\TextBoxView.cs (6)
894
if (nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].EndOffset &&
908
else if (nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset &&
927
ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength, logicalDirection);
957
if (backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset)
975
ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength, logicalDirection);
1763
return _host.TextContainer.CreatePointerAtOffset(charIndex.
FirstCharacterIndex
+ charIndex.TrailingLength, logicalDirection);
src\Framework\MS\Internal\PtsHost\Line.cs (1)
610
cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.
FirstCharacterIndex
+ charIndex.TrailingLength;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (11)
1237
int cpPosition = charHit.
FirstCharacterIndex
+ charHit.TrailingLength;
2899
if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == lineDesc.dcpLim) && direction == LogicalDirection.Forward)
2912
else if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == lineDesc.dcpFirst) && direction == LogicalDirection.Backward)
2929
nextCaretPosition = GetTextPosition(nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength, logicalDirection);
3067
if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == element.dcpLim) && direction == LogicalDirection.Forward)
3081
else if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == element.dcpFirst) && direction == LogicalDirection.Backward)
3099
nextCaretPosition = GetTextPosition(nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength, logicalDirection);
3178
if (backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength == lineDesc.dcpFirst)
3195
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength, logicalDirection);
3308
if (backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength == element.dcpFirst)
3325
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength, logicalDirection);
src\Framework\MS\Internal\Text\ComplexLine.cs (1)
567
int offset = charHit.
FirstCharacterIndex
+ charHit.TrailingLength;
src\Framework\System\Windows\Controls\TextBlock.cs (6)
2244
pos = _complexContent.TextContainer.Start.CreatePointer(charIndex.
FirstCharacterIndex
+ charIndex.TrailingLength, logicalDirection);
2623
if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward)
2636
else if ((nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength == dcp) && direction == LogicalDirection.Backward)
2653
ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.
FirstCharacterIndex
+ nextCharacterHit.TrailingLength, logicalDirection);
2724
if (backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength == dcp)
2741
ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.
FirstCharacterIndex
+ backspaceCharacterHit.TrailingLength, logicalDirection);
src\Framework\System\Windows\Documents\FixedTextView.cs (2)
552
int index = next.
FirstCharacterIndex
+ next.TrailingLength;
829
charIndex = hit.
FirstCharacterIndex
+ hit.TrailingLength;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
590
return hit.
FirstCharacterIndex
+ hit.TrailingLength;