5 implementations of Offset
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
672
int ITextPointer.
Offset
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
402
int ITextPointer.
Offset
System\Windows\Documents\FixedTextPointer.cs (1)
619
int ITextPointer.
Offset
System\Windows\Documents\NullTextNavigator.cs (1)
481
int ITextPointer.
Offset
System\Windows\Documents\TextPointer.cs (1)
3703
int ITextPointer.
Offset
76 references to Offset
PresentationFramework (76)
MS\Internal\Documents\TextBoxView.cs (19)
630
int offset = position.
Offset
;
655
if (position.LogicalDirection == LogicalDirection.Forward || position.
Offset
== 0)
662
if (position.LogicalDirection == LogicalDirection.Backward && position.
Offset
> 0)
695
int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, startPosition.
Offset
);
696
int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.
Offset
);
825
sourceCharacterHit = new CharacterHit(position.
Offset
, 0);
829
if (position.
Offset
> _lineMetrics[lineIndex].Offset)
832
sourceCharacterHit = new CharacterHit(position.
Offset
- 1, 1);
858
if (position.
Offset
== 0 && direction == LogicalDirection.Backward)
862
else if (position.
Offset
== _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward)
869
CharacterHit sourceCharacterHit = new CharacterHit(position.
Offset
, 0);
935
if (position.
Offset
== 0)
942
CharacterHit sourceCharacterHit = new CharacterHit(position.
Offset
, 0);
1487
int positionsCovered = segment.End.
Offset
- segment.Start.
Offset
;
1488
DirtyTextRange dirtyTextRange = new DirtyTextRange(segment.Start.
Offset
, positionsCovered, positionsCovered, fromHighlightLayer: true);
1696
return GetLineIndexFromOffset(position.
Offset
, position.LogicalDirection);
1702
return GetLineIndexFromOffset(position.
Offset
, direction);
2924
_lineMetrics[_lineMetrics.Count - 1].EndOffset >= position.
Offset
;
MS\Internal\Documents\TextContainerHelper.cs (1)
113
int cpPos = position.
Offset
;
MS\Internal\PtsHost\DirtyTextRange.cs (1)
40
StartIndex = change.ITextPosition.
Offset
;
MS\Internal\PtsHost\TextParaClient.cs (2)
737
int cpStartTextPointer = startPosition.
Offset
;
741
int cpEndTextPointer = endPosition.
Offset
;
System\Windows\Controls\PasswordTextContainer.cs (1)
637
_changes.AddChange(precursorTextChange, startPosition.
Offset
, symbolCount, false /* collectTextChanges */);
System\Windows\Controls\TextBox.cs (4)
504
return (spellingError == null) ? -1 : spellingError.Start.
Offset
;
521
return (spellingError == null) ? 0 : spellingError.End.
Offset
- spellingError.Start.
Offset
;
558
return (position == null) ? -1 : position.
Offset
;
System\Windows\Documents\CompositionAdorner.cs (2)
458
_startOffset = start.
Offset
;
459
_endOffset = end.
Offset
;
System\Windows\Documents\FixedTextPointer.cs (1)
617
/// <see cref="ITextPointer.
Offset
"/>
System\Windows\Documents\FlowDocument.cs (1)
1427
DirtyTextRange dtr = new DirtyTextRange(textSegment.Start.
Offset
,
System\Windows\Documents\FrameworkTextComposition.cs (2)
203
_offset = (_resultStart == null) ? -1 : _resultStart.
Offset
;
227
_offset = (_compositionStart == null) ? -1 : _compositionStart.
Offset
;
System\Windows\Documents\NullTextNavigator.cs (1)
479
/// <see cref="ITextPointer.
Offset
"/>
System\Windows\Documents\Speller.cs (6)
841
Start offset = {start.
Offset
} parent = {start.ParentType.Name}
842
ContextStart offset = {contextStart.
Offset
} parent = {contextStart.ParentType.Name}
843
ContentStart offset = {contentStart.
Offset
} parent = {contentStart.ParentType.Name}
844
ContentEnd offset = {contentEnd.
Offset
} parent = {contentEnd.ParentType.Name}
845
ContextEnd offset = {contextEnd.
Offset
} parent = {contextEnd.ParentType.Name}
846
Timeout offset = {status.TimeoutPosition.
Offset
} parent = {status.TimeoutPosition.ParentType.Name}
System\Windows\Documents\SpellerStatusTable.cs (2)
559
if (e.ITextPosition.
Offset
> 0)
569
if (e.ITextPosition.
Offset
+ e.Count < e.ITextPosition.TextContainer.SymbolCount - 1)
System\Windows\Documents\TextContainer.cs (1)
700
offsetPosition = position2.
Offset
+ 1; // Convert to internal offset with +1.
System\Windows\Documents\TextParentUndoUnit.cs (4)
44
_undoAnchorPositionOffset = anchorPosition.
Offset
;
46
_undoMovingPositionOffset = movingPosition.
Offset
;
182
_redoAnchorPositionOffset = anchorPosition.
Offset
;
184
_redoMovingPositionOffset = movingPosition.
Offset
;
System\Windows\Documents\TextRangeSerialization.cs (4)
245
ignoreList.Add(ptr.
Offset
);
279
if (ignoreList.Contains(endPointer.
Offset
))
281
ignoreList.Remove(endPointer.
Offset
);
490
ignoreList.Add(position.
Offset
);
System\Windows\Documents\TextStore.cs (24)
756
_previousCompositionStartOffset = this.TextSelection.Start.
Offset
;
757
_previousCompositionEndOffset = this.TextSelection.End.
Offset
;
1242
int startOffsetBefore = start.
Offset
;
1243
int endOffsetBefore = end.
Offset
;
1299
_previousCompositionStartOffset = start.
Offset
;
1300
_previousCompositionEndOffset = end.
Offset
;
1342
compositionRangeShifted = (newStart.
Offset
!= oldStart.
Offset
|| newEnd.
Offset
!= oldEnd.
Offset
);
1353
_previousCompositionStartOffset = newStart.
Offset
;
1354
_previousCompositionEndOffset = newEnd.
Offset
;
1373
_previousCompositionStartOffset = oldStart.
Offset
;
1374
_previousCompositionEndOffset = oldEnd.
Offset
;
1409
this.CompositionEventList.Add(new CompositionEventRecord(CompositionStage.EndComposition, start.
Offset
, end.
Offset
, TextRangeBase.GetTextInternal(start, end)));
2344
_previousCompositionStartOffset = (_previousCompositionStart == null) ? -1 : _previousCompositionStart.
Offset
;
2345
_previousCompositionEndOffset = (_previousCompositionEnd == null) ? -1 : _previousCompositionEnd.
Offset
;
3537
int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3538
int imeSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;
3777
appSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3778
appSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;
3804
appSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3805
appSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;