59 references to CharacterHit
PresentationCore (33)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (11)
898
CharacterHit characterHit = new
CharacterHit
(_cpFirst, 0);
920
return new
CharacterHit
(_collapsedRange.TextSourceCharacterIndex, _collapsedRange.Length);
925
return new
CharacterHit
(_collapsedRange.TextSourceCharacterIndex, 0);
988
return new
CharacterHit
(GetExternalCp(lsTextCell.lscpStartCell) + i, codepointsToNextCaretStop);
992
return new
CharacterHit
(GetExternalCp(lsTextCell.lscpStartCell) + i, 0);
999
return new
CharacterHit
(GetExternalCp(lsTextCell.lscpStartCell) + caretStopCount - 1, codepointsToNextCaretStop);
1224
return new
CharacterHit
(caretStopIndex, offsetToNextCaretStopIndex);
1229
return new
CharacterHit
(caretStopIndex, offsetToNextCaretStopIndex);
1332
return new
CharacterHit
(caretStopIndex, 0);
2067
DistanceFromCharacterHit(new
CharacterHit
(cp, 0))
2073
DistanceFromCharacterHit(new
CharacterHit
(cp + cchBounds - 1, 1))
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (11)
667
return new
CharacterHit
(_cpFirst, 0);
693
return new
CharacterHit
(first, runIndex.TrailingLength);
731
return new
CharacterHit
(nextVisisbleCp, 1);
739
return new
CharacterHit
(nextVisisbleCp, 1);
776
return new
CharacterHit
(previousVisisbleCp, 0);
784
return new
CharacterHit
(previousVisisbleCp, 0);
841
new
CharacterHit
(firstTextSourceCharacterIndex, 0)
845
new
CharacterHit
(firstTextSourceCharacterIndex + textLength, 0)
2014
return (EOT || idealDistance <= 0) ? new CharacterHit() : new
CharacterHit
(Length, 0);
2040
return new
CharacterHit
(dcp, (idealDistance > currentIdealAdvance / 2 ? 1 : 0));
2044
return new
CharacterHit
(Length - 1, 1);
Core\CSharp\System\Windows\Media\GlyphRun.cs (10)
694
return new
CharacterHit
(caretStops.Count - 1, 0);
696
return new
CharacterHit
(0, 0);
706
return new
CharacterHit
(secondStopIndex, 0);
716
return new
CharacterHit
(firstStopIndex, caretStops.Count - 1 - firstStopIndex);
724
return new
CharacterHit
(firstStopIndex, 0);
729
return new
CharacterHit
(firstStopIndex, secondStopIndex - firstStopIndex);
761
return new
CharacterHit
(caretStopIndex, codePointsUntilNextStop);
777
return new
CharacterHit
(nextCaretStopIndex, nextCodePointsUntilNextStop);
807
return new
CharacterHit
(caretStopIndex, 0);
821
return new
CharacterHit
(previousCaretStopIndex, 0);
Core\CSharp\System\Windows\Media\TextFormatting\TextLine.cs (1)
165
nextHit = new
CharacterHit
(cpFirst + Length - 1, 1);
PresentationFramework (26)
src\Framework\MS\Internal\Documents\TextBoxView.cs (4)
831
sourceCharacterHit = new
CharacterHit
(position.Offset, 0);
838
sourceCharacterHit = new
CharacterHit
(position.Offset - 1, 1);
875
CharacterHit sourceCharacterHit = new
CharacterHit
(position.Offset, 0);
948
CharacterHit sourceCharacterHit = new
CharacterHit
(position.Offset, 0);
src\Framework\MS\Internal\PtsHost\Line.cs (1)
135
double distance = _line.GetDistanceFromCharacterHit(new
CharacterHit
(dcpFigure, 0));
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (11)
2641
charHit = new
CharacterHit
(dcp - 1, 1);
2648
charHit = new
CharacterHit
(dcp - 1, 1);
2654
charHit = new
CharacterHit
(dcp, 0);
2743
charHit = new
CharacterHit
(dcp - 1, 1);
2768
charHit = new
CharacterHit
(dcp - 1, 1);
2777
charHit = new
CharacterHit
(dcp - 1, 1);
2783
charHit = new
CharacterHit
(dcp, 0);
2884
CharacterHit charHit = new
CharacterHit
(dcp, 0);
3055
CharacterHit charHit = new
CharacterHit
(dcp, 0);
3175
CharacterHit textSourceCharacterIndex = new
CharacterHit
(dcp, 0);
3305
CharacterHit charHit = new
CharacterHit
(dcp, 0);
src\Framework\System\Windows\Controls\TextBlock.cs (4)
2493
charHit = new
CharacterHit
(characterIndex - 1, 1);
2505
charHit = new
CharacterHit
(characterIndex, 0);
2595
CharacterHit textSourceCharacterIndex = new
CharacterHit
(characterIndex, 0);
2703
CharacterHit textSourceCharacterIndex = new
CharacterHit
(characterIndex, 0);
src\Framework\System\Windows\Documents\FixedHighlight.cs (3)
151
x1 = run.GetDistanceFromCaretCharacterHit(new
CharacterHit
(_gBeginOffset, 0));
155
x2 = run.GetDistanceFromCaretCharacterHit(new
CharacterHit
(chrct - 1, 1));
159
x2 = run.GetDistanceFromCaretCharacterHit(new
CharacterHit
(_gEndOffset, 0));
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
538
new
CharacterHit
(fixedp.Offset - 1, 1) :
539
new
CharacterHit
(fixedp.Offset, 0);
1001
return run.GetDistanceFromCaretCharacterHit(new
CharacterHit
(firstChar, trailingLength));