59 references to CharacterHit
PresentationCore (33)
MS\Internal\TextFormatting\FullTextLine.cs (11)
865
CharacterHit characterHit = new
CharacterHit
(_cpFirst, 0);
887
return new
CharacterHit
(_collapsedRange.TextSourceCharacterIndex, _collapsedRange.Length);
892
return new
CharacterHit
(_collapsedRange.TextSourceCharacterIndex, 0);
955
return new
CharacterHit
(GetExternalCp(lsTextCell.lscpStartCell) + i, codepointsToNextCaretStop);
959
return new
CharacterHit
(GetExternalCp(lsTextCell.lscpStartCell) + i, 0);
966
return new
CharacterHit
(GetExternalCp(lsTextCell.lscpStartCell) + caretStopCount - 1, codepointsToNextCaretStop);
1191
return new
CharacterHit
(caretStopIndex, offsetToNextCaretStopIndex);
1196
return new
CharacterHit
(caretStopIndex, offsetToNextCaretStopIndex);
1299
return new
CharacterHit
(caretStopIndex, 0);
2031
DistanceFromCharacterHit(new
CharacterHit
(cp, 0))
2037
DistanceFromCharacterHit(new
CharacterHit
(cp + cchBounds - 1, 1))
MS\Internal\TextFormatting\SimpleTextLine.cs (11)
660
return new
CharacterHit
(_cpFirst, 0);
686
return new
CharacterHit
(first, runIndex.TrailingLength);
724
return new
CharacterHit
(nextVisisbleCp, 1);
732
return new
CharacterHit
(nextVisisbleCp, 1);
769
return new
CharacterHit
(previousVisisbleCp, 0);
777
return new
CharacterHit
(previousVisisbleCp, 0);
831
new
CharacterHit
(firstTextSourceCharacterIndex, 0)
835
new
CharacterHit
(firstTextSourceCharacterIndex + textLength, 0)
1994
return (EOT || idealDistance <= 0) ? new CharacterHit() : new
CharacterHit
(Length, 0);
2020
return new
CharacterHit
(dcp, (idealDistance > currentIdealAdvance / 2 ? 1 : 0));
2024
return new
CharacterHit
(Length - 1, 1);
System\Windows\Media\GlyphRun.cs (10)
685
return new
CharacterHit
(caretStops.Count - 1, 0);
687
return new
CharacterHit
(0, 0);
697
return new
CharacterHit
(secondStopIndex, 0);
707
return new
CharacterHit
(firstStopIndex, caretStops.Count - 1 - firstStopIndex);
715
return new
CharacterHit
(firstStopIndex, 0);
720
return new
CharacterHit
(firstStopIndex, secondStopIndex - firstStopIndex);
752
return new
CharacterHit
(caretStopIndex, codePointsUntilNextStop);
768
return new
CharacterHit
(nextCaretStopIndex, nextCodePointsUntilNextStop);
798
return new
CharacterHit
(caretStopIndex, 0);
812
return new
CharacterHit
(previousCaretStopIndex, 0);
System\Windows\Media\textformatting\TextLine.cs (1)
158
nextHit = new
CharacterHit
(cpFirst + Length - 1, 1);
PresentationFramework (26)
MS\Internal\Documents\TextBoxView.cs (4)
827
sourceCharacterHit = new
CharacterHit
(position.Offset, 0);
834
sourceCharacterHit = new
CharacterHit
(position.Offset - 1, 1);
871
CharacterHit sourceCharacterHit = new
CharacterHit
(position.Offset, 0);
944
CharacterHit sourceCharacterHit = new
CharacterHit
(position.Offset, 0);
MS\Internal\PtsHost\Line.cs (1)
132
double distance = _line.GetDistanceFromCharacterHit(new
CharacterHit
(dcpFigure, 0));
MS\Internal\PtsHost\TextParaClient.cs (11)
2419
charHit = new
CharacterHit
(dcp - 1, 1);
2426
charHit = new
CharacterHit
(dcp - 1, 1);
2432
charHit = new
CharacterHit
(dcp, 0);
2517
charHit = new
CharacterHit
(dcp - 1, 1);
2541
charHit = new
CharacterHit
(dcp - 1, 1);
2550
charHit = new
CharacterHit
(dcp - 1, 1);
2556
charHit = new
CharacterHit
(dcp, 0);
2653
CharacterHit charHit = new
CharacterHit
(dcp, 0);
2819
CharacterHit charHit = new
CharacterHit
(dcp, 0);
2935
CharacterHit textSourceCharacterIndex = new
CharacterHit
(dcp, 0);
3061
CharacterHit charHit = new
CharacterHit
(dcp, 0);
System\Windows\Controls\TextBlock.cs (4)
2405
charHit = new
CharacterHit
(characterIndex - 1, 1);
2417
charHit = new
CharacterHit
(characterIndex, 0);
2506
CharacterHit textSourceCharacterIndex = new
CharacterHit
(characterIndex, 0);
2614
CharacterHit textSourceCharacterIndex = new
CharacterHit
(characterIndex, 0);
System\Windows\Documents\FixedHighlight.cs (3)
148
x1 = run.GetDistanceFromCaretCharacterHit(new
CharacterHit
(_gBeginOffset, 0));
152
x2 = run.GetDistanceFromCaretCharacterHit(new
CharacterHit
(chrct - 1, 1));
156
x2 = run.GetDistanceFromCaretCharacterHit(new
CharacterHit
(_gEndOffset, 0));
System\Windows\Documents\FixedTextView.cs (3)
529
new
CharacterHit
(fixedp.Offset - 1, 1) :
530
new
CharacterHit
(fixedp.Offset, 0);
989
return run.GetDistanceFromCaretCharacterHit(new
CharacterHit
(firstChar, trailingLength));