60 references to TrailingLength
PresentationCore (17)
MS\Internal\TextFormatting\FullTextLine.cs (6)
1010
|| characterHit.
TrailingLength
!= 0
1039
characterHit.
TrailingLength
!= 0,
1158
if (caretStopIndex <= characterHit.FirstCharacterIndex && characterHit.
TrailingLength
!= 0)
1236
&& characterHit.
TrailingLength
== 0)
1259
&& characterHit.
TrailingLength
== 0
2213
return _cpFirst + _metrics._cchLength - characterHit.FirstCharacterIndex - characterHit.
TrailingLength
;
MS\Internal\TextFormatting\SimpleTextLine.cs (5)
665
first += runIndex.
TrailingLength
;
677
return new CharacterHit(first, runIndex.
TrailingLength
);
692
return DistanceFromCp(characterHit.FirstCharacterIndex + (characterHit.
TrailingLength
!= 0 ? 1 : 0));
709
if (characterHit.
TrailingLength
== 0)
745
bool trailingHit = (characterHit.
TrailingLength
!= 0);
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
485
ArgumentOutOfRangeException.ThrowIfNegative(characterHit.
TrailingLength
, nameof(cchLength));
System\Windows\Media\GlyphRun.cs (4)
497
if (codePointsUntilNextStop == -1 && characterHit.
TrailingLength
!= 0)
503
int caretCodePoint = characterHit.
TrailingLength
== 0 ? caretStopIndex : caretStopIndex + codePointsUntilNextStop;
723
if (characterHit.
TrailingLength
== 0)
769
if (characterHit.
TrailingLength
!= 0)
System\Windows\Media\textformatting\TextLine.cs (1)
145
if (characterHit.
TrailingLength
== 0)
PresentationFramework (43)
MS\Internal\Documents\TextBoxView.cs (9)
888
if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].EndOffset &&
902
else if (nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].Offset &&
918
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
921
ITextPointer nextCaretUnitPosition = _host.TextContainer.CreatePointerAtOffset(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
951
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== _lineMetrics[lineIndex].Offset)
966
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
969
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)
592
cp = _paraClient.Paragraph.ParagraphStartCharacterPosition + charIndex.FirstCharacterIndex + charIndex.
TrailingLength
;
598
type = position.GetPointerContext((charIndex.
TrailingLength
== 0) ? LogicalDirection.Forward : LogicalDirection.Backward);
MS\Internal\PtsHost\TextParaClient.cs (16)
1083
int cpPosition = charHit.FirstCharacterIndex + charHit.
TrailingLength
;
1091
LogicalDirection logicalDirection = (charHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2662
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== lineDesc.dcpLim) && direction == LogicalDirection.Forward)
2675
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== lineDesc.dcpFirst) && direction == LogicalDirection.Backward)
2690
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2692
nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2825
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== element.dcpLim) && direction == LogicalDirection.Forward)
2839
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== element.dcpFirst) && direction == LogicalDirection.Backward)
2855
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2857
nextCaretPosition = GetTextPosition(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2932
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== lineDesc.dcpFirst)
2947
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2949
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
3058
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== element.dcpFirst)
3073
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
3075
backspaceCaretPosition = GetTextPosition(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
MS\Internal\Text\ComplexLine.cs (2)
287
if (charHit.
TrailingLength
== 0)
555
int offset = charHit.FirstCharacterIndex + charHit.
TrailingLength
;
System\Windows\Controls\TextBlock.cs (9)
2144
logicalDirection = (charIndex.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2145
pos = _complexContent.TextContainer.Start.CreatePointer(charIndex.FirstCharacterIndex + charIndex.
TrailingLength
, logicalDirection);
2522
if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== (dcp + GetLine(lineIndex).Length)) && direction == LogicalDirection.Forward)
2535
else if ((nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
== dcp) && direction == LogicalDirection.Backward)
2550
logicalDirection = (nextCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2552
ITextPointer nextCaretPosition = _complexContent.TextContainer.Start.CreatePointer(nextCharacterHit.FirstCharacterIndex + nextCharacterHit.
TrailingLength
, logicalDirection);
2623
if (backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
== dcp)
2638
logicalDirection = (backspaceCharacterHit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
2640
ITextPointer backspaceCaretPosition = _complexContent.TextContainer.Start.CreatePointer(backspaceCharacterHit.FirstCharacterIndex + backspaceCharacterHit.
TrailingLength
, logicalDirection);
System\Windows\Documents\FixedTextView.cs (4)
525
if (next.
TrailingLength
> 0)
530
int index = next.FirstCharacterIndex + next.
TrailingLength
;
805
charIndex = hit.FirstCharacterIndex + hit.
TrailingLength
;
806
edge = (hit.
TrailingLength
> 0) ? LogicalDirection.Backward : LogicalDirection.Forward;
System\Windows\Documents\RubberbandSelector.cs (1)
484
return hit.FirstCharacterIndex + hit.
TrailingLength
;