5 implementations of Offset
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
678
int ITextPointer.
Offset
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
412
int ITextPointer.
Offset
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
642
int ITextPointer.
Offset
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
486
int ITextPointer.
Offset
src\Framework\System\Windows\Documents\TextPointer.cs (1)
3734
int ITextPointer.
Offset
76 references to Offset
PresentationFramework (76)
src\Framework\MS\Internal\Documents\TextBoxView.cs (19)
636
int offset = position.
Offset
;
661
if (position.LogicalDirection == LogicalDirection.Forward || position.
Offset
== 0)
668
if (position.LogicalDirection == LogicalDirection.Backward && position.
Offset
> 0)
701
int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count-1].EndOffset, startPosition.
Offset
);
702
int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.
Offset
);
831
sourceCharacterHit = new CharacterHit(position.
Offset
, 0);
835
if (position.
Offset
> _lineMetrics[lineIndex].Offset)
838
sourceCharacterHit = new CharacterHit(position.
Offset
- 1, 1);
864
if (position.
Offset
== 0 && direction == LogicalDirection.Backward)
868
else if (position.
Offset
== _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward)
875
CharacterHit sourceCharacterHit = new CharacterHit(position.
Offset
, 0);
941
if (position.
Offset
== 0)
948
CharacterHit sourceCharacterHit = new CharacterHit(position.
Offset
, 0);
1489
int positionsCovered = segment.End.
Offset
- segment.Start.
Offset
;
1490
DirtyTextRange dirtyTextRange = new DirtyTextRange(segment.Start.
Offset
, positionsCovered, positionsCovered, fromHighlightLayer: true);
1696
return GetLineIndexFromOffset(position.
Offset
, position.LogicalDirection);
1702
return GetLineIndexFromOffset(position.
Offset
, direction);
2904
_lineMetrics[_lineMetrics.Count - 1].EndOffset >= position.
Offset
;
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (1)
121
int cpPos = position.
Offset
;
src\Framework\MS\Internal\PtsHost\DirtyTextRange.cs (1)
47
StartIndex = change.ITextPosition.
Offset
;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
852
int cpStartTextPointer = startPosition.
Offset
;
856
int cpEndTextPointer = endPosition.
Offset
;
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
646
_changes.AddChange(precursorTextChange, startPosition.
Offset
, symbolCount, false /* collectTextChanges */);
src\Framework\System\Windows\Controls\TextBox.cs (4)
538
return (spellingError == null) ? -1 : spellingError.Start.
Offset
;
555
return (spellingError == null) ? 0 : spellingError.End.
Offset
- spellingError.Start.
Offset
;
594
return (position == null) ? -1 : position.
Offset
;
src\Framework\System\Windows\Documents\CompositionAdorner.cs (2)
463
_startOffset = start.
Offset
;
464
_endOffset = end.
Offset
;
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
640
/// <see cref="ITextPointer.
Offset
"/>
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1436
DirtyTextRange dtr = new DirtyTextRange(textSegment.Start.
Offset
,
src\Framework\System\Windows\Documents\FrameworkTextComposition.cs (2)
234
_offset = (_resultStart == null) ? -1 : _resultStart.
Offset
;
258
_offset = (_compositionStart == null) ? -1 : _compositionStart.
Offset
;
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
484
/// <see cref="ITextPointer.
Offset
"/>
src\Framework\System\Windows\Documents\Speller.cs (6)
915
"Start offset = " + start.
Offset
+ " parent = " + start.ParentType.Name + "\n" +
916
"ContextStart offset = " + contextStart.
Offset
+ " parent = " + contextStart.ParentType.Name + "\n" +
917
"ContentStart offset = " + contentStart.
Offset
+ " parent = " + contentStart.ParentType.Name + "\n" +
918
"ContentEnd offset = " + contentEnd.
Offset
+ " parent = " + contentEnd.ParentType.Name + "\n" +
919
"ContextEnd offset = " + contextEnd.
Offset
+ " parent = " + contextEnd.ParentType.Name + "\n" +
920
"Timeout offset = " + status.TimeoutPosition.
Offset
+ " parent = " + status.TimeoutPosition.ParentType.Name + "\n" +
src\Framework\System\Windows\Documents\SpellerStatusTable.cs (2)
561
if (e.ITextPosition.
Offset
> 0)
571
if (e.ITextPosition.
Offset
+ e.Count < e.ITextPosition.TextContainer.SymbolCount - 1)
src\Framework\System\Windows\Documents\TextContainer.cs (1)
720
offsetPosition = position2.
Offset
+ 1; // Convert to internal offset with +1.
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (4)
60
_undoAnchorPositionOffset = anchorPosition.
Offset
;
62
_undoMovingPositionOffset = movingPosition.
Offset
;
198
_redoAnchorPositionOffset = anchorPosition.
Offset
;
200
_redoMovingPositionOffset = movingPosition.
Offset
;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (4)
257
ignoreList.Add(ptr.
Offset
);
291
if (ignoreList.Contains(endPointer.
Offset
))
293
ignoreList.Remove(endPointer.
Offset
);
502
ignoreList.Add(position.
Offset
);
src\Framework\System\Windows\Documents\TextStore.cs (24)
635
_previousCompositionStartOffset = this.TextSelection.Start.
Offset
;
636
_previousCompositionEndOffset = this.TextSelection.End.
Offset
;
1125
int startOffsetBefore = start.
Offset
;
1126
int endOffsetBefore = end.
Offset
;
1182
_previousCompositionStartOffset = start.
Offset
;
1183
_previousCompositionEndOffset = end.
Offset
;
1219
compositionRangeShifted = (newStart.
Offset
!= oldStart.
Offset
|| newEnd.
Offset
!= oldEnd.
Offset
);
1230
_previousCompositionStartOffset = newStart.
Offset
;
1231
_previousCompositionEndOffset = newEnd.
Offset
;
1250
_previousCompositionStartOffset = oldStart.
Offset
;
1251
_previousCompositionEndOffset = oldEnd.
Offset
;
1280
this.CompositionEventList.Add(new CompositionEventRecord(CompositionStage.EndComposition, start.
Offset
, end.
Offset
, TextRangeBase.GetTextInternal(start, end)));
2219
_previousCompositionStartOffset = (_previousCompositionStart == null) ? -1 : _previousCompositionStart.
Offset
;
2220
_previousCompositionEndOffset = (_previousCompositionEnd == null) ? -1 : _previousCompositionEnd.
Offset
;
3458
int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3459
int imeSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;
3649
appSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3650
appSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;
3676
appSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3677
appSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;