60 references to TrailingLength
PresentationCore (17)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (6)
1056
|| characterHit.
TrailingLength
!= 0
1085
characterHit.
TrailingLength
!= 0,
1204
if (caretStopIndex <= characterHit.FirstCharacterIndex && characterHit.
TrailingLength
!= 0)
1282
&& characterHit.
TrailingLength
== 0)
1305
&& characterHit.
TrailingLength
== 0
2274
return _cpFirst + _metrics._cchLength - characterHit.FirstCharacterIndex - characterHit.
TrailingLength
;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (5)
681
first += runIndex.
TrailingLength
;
693
return new CharacterHit(first, runIndex.
TrailingLength
);
708
return DistanceFromCp(characterHit.FirstCharacterIndex + (characterHit.
TrailingLength
!= 0 ? 1 : 0));
725
if (characterHit.
TrailingLength
== 0)
761
bool trailingHit = (characterHit.
TrailingLength
!= 0);
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (1)
534
if (characterHit.
TrailingLength
< 0)
Core\CSharp\System\Windows\Media\GlyphRun.cs (4)
534
if (codePointsUntilNextStop == -1 && characterHit.
TrailingLength
!= 0)
540
int caretCodePoint = characterHit.
TrailingLength
== 0 ? caretStopIndex : caretStopIndex + codePointsUntilNextStop;
760
if (characterHit.
TrailingLength
== 0)
806
if (characterHit.
TrailingLength
!= 0)
Core\CSharp\System\Windows\Media\TextFormatting\TextLine.cs (1)
158
if (characterHit.
TrailingLength
== 0)
PresentationFramework (43)
src\Framework\MS\Internal\Documents\TextBoxView.cs (9)
894
if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].EndOffset &&
908
else if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].Offset &&
924
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
927
ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
957
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].Offset)
972
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
975
ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
1760
logicalDirection = (charIndex.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
1763
return _host.TextContainer.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.
TrailingLength
, logicalDirection);
src\Framework\MS\Internal\PtsHost\Line.cs (2)
610
cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.
TrailingLength
;
616
type = position.GetPointerContext((charIndex.
TrailingLength
== 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (16)
1237
int cpPosition = charHit.FirstCharacterIndex + charHit.
TrailingLength
;
1245
LogicalDirection logicalDirection = (charHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2899
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== lineDesc.dcpLim) && direction == LogicalDirection.Forward)
2912
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== lineDesc.dcpFirst) && direction == LogicalDirection.Backward)
2927
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2929
nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
3067
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== element.dcpLim) && direction == LogicalDirection.Forward)
3081
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== element.dcpFirst) && direction == LogicalDirection.Backward)
3097
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3099
nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
3178
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== lineDesc.dcpFirst)
3193
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3195
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
3308
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== element.dcpFirst)
3323
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3325
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
296
if (charHit.
TrailingLength
== 0)
567
int offset = charHit.FirstCharacterIndex + charHit.
TrailingLength
;
src\Framework\System\Windows\Controls\TextBlock.cs (9)
2243
logicalDirection = (charIndex.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2244
pos = _complexContent.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.
TrailingLength
, logicalDirection);
2623
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward)
2636
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== dcp) && direction == LogicalDirection.Backward)
2651
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2653
ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2724
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== dcp)
2739
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2741
ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
src\Framework\System\Windows\Documents\FixedTextView.cs (4)
547
if (next.
TrailingLength
> 0)
552
int index = next.FirstCharacterIndex + next.
TrailingLength
;
829
charIndex = hit.FirstCharacterIndex + hit.
TrailingLength
;
830
edge = (hit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
590
return hit.FirstCharacterIndex + hit.
TrailingLength
;