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