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