60 references to TrailingLength
PresentationCore (17)
MS\Internal\TextFormatting\FullTextLine.cs (6)
1023
|| characterHit.
TrailingLength
!= 0
1052
characterHit.
TrailingLength
!= 0,
1171
if (caretStopIndex <= characterHit.FirstCharacterIndex && characterHit.
TrailingLength
!= 0)
1249
&& characterHit.
TrailingLength
== 0)
1272
&& characterHit.
TrailingLength
== 0
2226
return _cpFirst + _metrics._cchLength - characterHit.FirstCharacterIndex - characterHit.
TrailingLength
;
MS\Internal\TextFormatting\SimpleTextLine.cs (5)
674
first += runIndex.
TrailingLength
;
686
return new CharacterHit(first, runIndex.
TrailingLength
);
701
return DistanceFromCp(characterHit.FirstCharacterIndex + (characterHit.
TrailingLength
!= 0 ? 1 : 0));
718
if (characterHit.
TrailingLength
== 0)
754
bool trailingHit = (characterHit.
TrailingLength
!= 0);
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
508
ArgumentOutOfRangeException.ThrowIfNegative(characterHit.
TrailingLength
, nameof(cchLength));
System\Windows\Media\GlyphRun.cs (4)
525
if (codePointsUntilNextStop == -1 && characterHit.
TrailingLength
!= 0)
531
int caretCodePoint = characterHit.
TrailingLength
== 0 ? caretStopIndex : caretStopIndex + codePointsUntilNextStop;
751
if (characterHit.
TrailingLength
== 0)
797
if (characterHit.
TrailingLength
!= 0)
System\Windows\Media\textformatting\TextLine.cs (1)
151
if (characterHit.
TrailingLength
== 0)
PresentationFramework (43)
MS\Internal\Documents\TextBoxView.cs (9)
890
if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].EndOffset &&
904
else if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].Offset &&
920
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
923
ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
953
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].Offset)
968
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
971
ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
1762
logicalDirection = (charIndex.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
1765
return _host.TextContainer.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.
TrailingLength
, logicalDirection);
MS\Internal\PtsHost\Line.cs (2)
607
cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.
TrailingLength
;
613
type = position.GetPointerContext((charIndex.
TrailingLength
== 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
MS\Internal\PtsHost\TextParaClient.cs (16)
1089
int cpPosition = charHit.FirstCharacterIndex + charHit.
TrailingLength
;
1097
LogicalDirection logicalDirection = (charHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2668
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== lineDesc.dcpLim) && direction == LogicalDirection.Forward)
2681
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== lineDesc.dcpFirst) && direction == LogicalDirection.Backward)
2696
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2698
nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2831
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== element.dcpLim) && direction == LogicalDirection.Forward)
2845
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== element.dcpFirst) && direction == LogicalDirection.Backward)
2861
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2863
nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2938
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== lineDesc.dcpFirst)
2953
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2955
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
3064
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== element.dcpFirst)
3079
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3081
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
MS\Internal\Text\ComplexLine.cs (2)
292
if (charHit.
TrailingLength
== 0)
560
int offset = charHit.FirstCharacterIndex + charHit.
TrailingLength
;
System\Windows\Controls\TextBlock.cs (9)
2156
logicalDirection = (charIndex.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2157
pos = _complexContent.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.
TrailingLength
, logicalDirection);
2534
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward)
2547
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== dcp) && direction == LogicalDirection.Backward)
2562
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2564
ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2635
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== dcp)
2650
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2652
ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
System\Windows\Documents\FixedTextView.cs (4)
538
if (next.
TrailingLength
> 0)
543
int index = next.FirstCharacterIndex + next.
TrailingLength
;
818
charIndex = hit.FirstCharacterIndex + hit.
TrailingLength
;
819
edge = (hit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
System\Windows\Documents\RubberbandSelector.cs (1)
492
return hit.FirstCharacterIndex + hit.
TrailingLength
;