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