54 references to FirstCharacterIndex
PresentationCore (26)
MS\Internal\TextFormatting\FullTextLine.cs (10)
994if (characterHit.FirstCharacterIndex >= _cpFirst + _metrics._cchLength) 1002&& characterHit.FirstCharacterIndex >= _collapsedRange.TextSourceCharacterIndex 1008if ( characterHit.FirstCharacterIndex >= _collapsedRange.TextSourceCharacterIndex + _collapsedRange.Length 1025int lscpCurrent = GetInternalCp(characterHit.FirstCharacterIndex); 1145characterHit.FirstCharacterIndex, 1157if (caretStopIndex <= characterHit.FirstCharacterIndex && characterHit.TrailingLength != 0) 1234if ( characterHit.FirstCharacterIndex == _cpFirst 1245characterHit.FirstCharacterIndex, 1260&& caretStopIndex >= characterHit.FirstCharacterIndex 2212return _cpFirst + _metrics._cchLength - characterHit.FirstCharacterIndex - characterHit.TrailingLength;
MS\Internal\TextFormatting\SimpleTextLine.cs (5)
660first += runIndex.FirstCharacterIndex; 685return DistanceFromCp(characterHit.FirstCharacterIndex + (characterHit.TrailingLength != 0 ? 1 : 0)); 704navigableCpFound = FindNextVisibleCp(characterHit.FirstCharacterIndex, out nextVisisbleCp); 712navigableCpFound = FindNextVisibleCp(characterHit.FirstCharacterIndex + 1, out nextVisisbleCp); 737int cpHit = characterHit.FirstCharacterIndex;
MS\Internal\TextFormatting\TextFormatterImp.cs (2)
481ArgumentOutOfRangeException.ThrowIfGreaterThan(cpFirst, characterHit.FirstCharacterIndex); 482ArgumentOutOfRangeException.ThrowIfLessThan(cpFirst, characterHit.FirstCharacterIndex - cchLength);
System\Windows\Media\GlyphRun.cs (9)
481if (characterHit.FirstCharacterIndex < 0 || characterHit.FirstCharacterIndex > CodepointCount) 486characterHit.FirstCharacterIndex, 707if (characterHit.FirstCharacterIndex < 0 || characterHit.FirstCharacterIndex > CodepointCount) 712characterHit.FirstCharacterIndex, 754if (characterHit.FirstCharacterIndex < 0 || characterHit.FirstCharacterIndex > CodepointCount) 759characterHit.FirstCharacterIndex,
PresentationFramework (28)
MS\Internal\Documents\TextBoxView.cs (6)
839if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].EndOffset && 853else if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset && 872ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 902if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength == _lineMetrics[lineIndex].Offset) 920ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 1716return _host.TextContainer.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection);
MS\Internal\PtsHost\Line.cs (1)
588cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.TrailingLength;
MS\Internal\PtsHost\TextParaClient.cs (11)
1082int cpPosition = charHit.FirstCharacterIndex + charHit.TrailingLength; 2661if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == lineDesc.dcpLim) && direction == LogicalDirection.Forward) 2674else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == lineDesc.dcpFirst) && direction == LogicalDirection.Backward) 2691nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 2824if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == element.dcpLim) && direction == LogicalDirection.Forward) 2838else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == element.dcpFirst) && direction == LogicalDirection.Backward) 2856nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 2931if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength == lineDesc.dcpFirst) 2948backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection); 3057if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength == element.dcpFirst) 3074backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
MS\Internal\Text\ComplexLine.cs (1)
551int offset = charHit.FirstCharacterIndex + charHit.TrailingLength;
System\Windows\Controls\TextBlock.cs (6)
2135pos = _complexContent.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.TrailingLength, logicalDirection); 2512if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward) 2525else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength == dcp) && direction == LogicalDirection.Backward) 2542ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.TrailingLength, logicalDirection); 2613if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength == dcp) 2630ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.TrailingLength, logicalDirection);
System\Windows\Documents\FixedTextView.cs (2)
529int index = next.FirstCharacterIndex + next.TrailingLength; 804charIndex = hit.FirstCharacterIndex + hit.TrailingLength;
System\Windows\Documents\RubberbandSelector.cs (1)
480return hit.FirstCharacterIndex + hit.TrailingLength;