5 implementations of Offset
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
676
int ITextPointer.
Offset
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
408
int ITextPointer.
Offset
System\Windows\Documents\FixedTextPointer.cs (1)
624
int ITextPointer.
Offset
System\Windows\Documents\NullTextNavigator.cs (1)
484
int ITextPointer.
Offset
System\Windows\Documents\TextPointer.cs (1)
3708
int ITextPointer.
Offset
76 references to Offset
PresentationFramework (76)
MS\Internal\Documents\TextBoxView.cs (19)
632
int offset = position.
Offset
;
657
if (position.LogicalDirection == LogicalDirection.Forward || position.
Offset
== 0)
664
if (position.LogicalDirection == LogicalDirection.Backward && position.
Offset
> 0)
697
int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, startPosition.
Offset
);
698
int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.
Offset
);
827
sourceCharacterHit = new CharacterHit(position.
Offset
, 0);
831
if (position.
Offset
> _lineMetrics[lineIndex].Offset)
834
sourceCharacterHit = new CharacterHit(position.
Offset
- 1, 1);
860
if (position.
Offset
== 0 && direction == LogicalDirection.Backward)
864
else if (position.
Offset
== _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward)
871
CharacterHit sourceCharacterHit = new CharacterHit(position.
Offset
, 0);
937
if (position.
Offset
== 0)
944
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);
1698
return GetLineIndexFromOffset(position.
Offset
, position.LogicalDirection);
1704
return GetLineIndexFromOffset(position.
Offset
, direction);
2926
_lineMetrics[_lineMetrics.Count - 1].EndOffset >= position.
Offset
;
MS\Internal\Documents\TextContainerHelper.cs (1)
116
int cpPos = position.
Offset
;
MS\Internal\PtsHost\DirtyTextRange.cs (1)
42
StartIndex = change.ITextPosition.
Offset
;
MS\Internal\PtsHost\TextParaClient.cs (2)
743
int cpStartTextPointer = startPosition.
Offset
;
747
int cpEndTextPointer = endPosition.
Offset
;
System\Windows\Controls\PasswordTextContainer.cs (1)
640
_changes.AddChange(precursorTextChange, startPosition.
Offset
, symbolCount, false /* collectTextChanges */);
System\Windows\Controls\TextBox.cs (4)
511
return (spellingError == null) ? -1 : spellingError.Start.
Offset
;
528
return (spellingError == null) ? 0 : spellingError.End.
Offset
- spellingError.Start.
Offset
;
565
return (position == null) ? -1 : position.
Offset
;
System\Windows\Documents\CompositionAdorner.cs (2)
461
_startOffset = start.
Offset
;
462
_endOffset = end.
Offset
;
System\Windows\Documents\FixedTextPointer.cs (1)
622
/// <see cref="ITextPointer.
Offset
"/>
System\Windows\Documents\FlowDocument.cs (1)
1427
DirtyTextRange dtr = new DirtyTextRange(textSegment.Start.
Offset
,
System\Windows\Documents\FrameworkTextComposition.cs (2)
207
_offset = (_resultStart == null) ? -1 : _resultStart.
Offset
;
231
_offset = (_compositionStart == null) ? -1 : _compositionStart.
Offset
;
System\Windows\Documents\NullTextNavigator.cs (1)
482
/// <see cref="ITextPointer.
Offset
"/>
System\Windows\Documents\Speller.cs (6)
845
Start offset = {start.
Offset
} parent = {start.ParentType.Name}
846
ContextStart offset = {contextStart.
Offset
} parent = {contextStart.ParentType.Name}
847
ContentStart offset = {contentStart.
Offset
} parent = {contentStart.ParentType.Name}
848
ContentEnd offset = {contentEnd.
Offset
} parent = {contentEnd.ParentType.Name}
849
ContextEnd offset = {contextEnd.
Offset
} parent = {contextEnd.ParentType.Name}
850
Timeout offset = {status.TimeoutPosition.
Offset
} parent = {status.TimeoutPosition.ParentType.Name}
System\Windows\Documents\SpellerStatusTable.cs (2)
561
if (e.ITextPosition.
Offset
> 0)
571
if (e.ITextPosition.
Offset
+ e.Count < e.ITextPosition.TextContainer.SymbolCount - 1)
System\Windows\Documents\TextContainer.cs (1)
705
offsetPosition = position2.
Offset
+ 1; // Convert to internal offset with +1.
System\Windows\Documents\TextParentUndoUnit.cs (4)
55
_undoAnchorPositionOffset = anchorPosition.
Offset
;
57
_undoMovingPositionOffset = movingPosition.
Offset
;
193
_redoAnchorPositionOffset = anchorPosition.
Offset
;
195
_redoMovingPositionOffset = movingPosition.
Offset
;
System\Windows\Documents\TextRangeSerialization.cs (4)
251
ignoreList.Add(ptr.
Offset
);
285
if (ignoreList.Contains(endPointer.
Offset
))
287
ignoreList.Remove(endPointer.
Offset
);
496
ignoreList.Add(position.
Offset
);
System\Windows\Documents\TextStore.cs (24)
767
_previousCompositionStartOffset = this.TextSelection.Start.
Offset
;
768
_previousCompositionEndOffset = this.TextSelection.End.
Offset
;
1253
int startOffsetBefore = start.
Offset
;
1254
int endOffsetBefore = end.
Offset
;
1310
_previousCompositionStartOffset = start.
Offset
;
1311
_previousCompositionEndOffset = end.
Offset
;
1353
compositionRangeShifted = (newStart.
Offset
!= oldStart.
Offset
|| newEnd.
Offset
!= oldEnd.
Offset
);
1364
_previousCompositionStartOffset = newStart.
Offset
;
1365
_previousCompositionEndOffset = newEnd.
Offset
;
1384
_previousCompositionStartOffset = oldStart.
Offset
;
1385
_previousCompositionEndOffset = oldEnd.
Offset
;
1420
this.CompositionEventList.Add(new CompositionEventRecord(CompositionStage.EndComposition, start.
Offset
, end.
Offset
, TextRangeBase.GetTextInternal(start, end)));
2355
_previousCompositionStartOffset = (_previousCompositionStart == null) ? -1 : _previousCompositionStart.
Offset
;
2356
_previousCompositionEndOffset = (_previousCompositionEnd == null) ? -1 : _previousCompositionEnd.
Offset
;
3548
int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3549
int imeSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;
3788
appSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3789
appSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;
3815
appSelectionAnchorOffset = this.TextSelection.AnchorPosition.
Offset
;
3816
appSelectionMovingOffset = this.TextSelection.MovingPosition.
Offset
;