60 references to TrailingLength
PresentationCore (17)
MS\Internal\TextFormatting\FullTextLine.cs (6)
1009
|| characterHit.
TrailingLength
!= 0
1038
characterHit.
TrailingLength
!= 0,
1157
if (caretStopIndex <= characterHit.FirstCharacterIndex && characterHit.
TrailingLength
!= 0)
1235
&& characterHit.
TrailingLength
== 0)
1258
&& characterHit.
TrailingLength
== 0
2212
return _cpFirst + _metrics._cchLength - characterHit.FirstCharacterIndex - characterHit.
TrailingLength
;
MS\Internal\TextFormatting\SimpleTextLine.cs (5)
658
first += runIndex.
TrailingLength
;
670
return new CharacterHit(first, runIndex.
TrailingLength
);
685
return DistanceFromCp(characterHit.FirstCharacterIndex + (characterHit.
TrailingLength
!= 0 ? 1 : 0));
702
if (characterHit.
TrailingLength
== 0)
738
bool trailingHit = (characterHit.
TrailingLength
!= 0);
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
484
ArgumentOutOfRangeException.ThrowIfNegative(characterHit.
TrailingLength
, nameof(cchLength));
System\Windows\Media\GlyphRun.cs (4)
496
if (codePointsUntilNextStop == -1 && characterHit.
TrailingLength
!= 0)
502
int caretCodePoint = characterHit.
TrailingLength
== 0 ? caretStopIndex : caretStopIndex + codePointsUntilNextStop;
722
if (characterHit.
TrailingLength
== 0)
768
if (characterHit.
TrailingLength
!= 0)
System\Windows\Media\textformatting\TextLine.cs (1)
144
if (characterHit.
TrailingLength
== 0)
PresentationFramework (43)
MS\Internal\Documents\TextBoxView.cs (9)
839
if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].EndOffset &&
853
else if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].Offset &&
869
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
872
ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
902
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].Offset)
917
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
920
ITextPointer backspaceUnitPosition = _host.TextContainer.CreatePointerAtOffset(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
1713
logicalDirection = (charIndex.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
1716
return _host.TextContainer.CreatePointerAtOffset(charIndex.FirstCharacterIndex + charIndex.
TrailingLength
, logicalDirection);
MS\Internal\PtsHost\Line.cs (2)
588
cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.
TrailingLength
;
594
type = position.GetPointerContext((charIndex.
TrailingLength
== 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
MS\Internal\PtsHost\TextParaClient.cs (16)
1082
int cpPosition = charHit.FirstCharacterIndex + charHit.
TrailingLength
;
1090
LogicalDirection logicalDirection = (charHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2661
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== lineDesc.dcpLim) && direction == LogicalDirection.Forward)
2674
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== lineDesc.dcpFirst) && direction == LogicalDirection.Backward)
2689
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2691
nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2824
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== element.dcpLim) && direction == LogicalDirection.Forward)
2838
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== element.dcpFirst) && direction == LogicalDirection.Backward)
2854
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2856
nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2931
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== lineDesc.dcpFirst)
2946
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2948
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
3057
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== element.dcpFirst)
3072
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3074
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
MS\Internal\Text\ComplexLine.cs (2)
283
if (charHit.
TrailingLength
== 0)
551
int offset = charHit.FirstCharacterIndex + charHit.
TrailingLength
;
System\Windows\Controls\TextBlock.cs (9)
2134
logicalDirection = (charIndex.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2135
pos = _complexContent.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.
TrailingLength
, logicalDirection);
2512
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward)
2525
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== dcp) && direction == LogicalDirection.Backward)
2540
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2542
ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2613
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== dcp)
2628
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2630
ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
System\Windows\Documents\FixedTextView.cs (4)
524
if (next.
TrailingLength
> 0)
529
int index = next.FirstCharacterIndex + next.
TrailingLength
;
804
charIndex = hit.FirstCharacterIndex + hit.
TrailingLength
;
805
edge = (hit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
System\Windows\Documents\RubberbandSelector.cs (1)
480
return hit.FirstCharacterIndex + hit.
TrailingLength
;