5 implementations of Offset
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
672int ITextPointer.Offset
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
400int ITextPointer.Offset
System\Windows\Documents\FixedTextPointer.cs (1)
617int ITextPointer.Offset
System\Windows\Documents\NullTextNavigator.cs (1)
479int ITextPointer.Offset
System\Windows\Documents\TextPointer.cs (1)
3703int ITextPointer.Offset
76 references to Offset
PresentationFramework (76)
MS\Internal\Documents\TextBoxView.cs (19)
588int offset = position.Offset; 613if (position.LogicalDirection == LogicalDirection.Forward || position.Offset == 0) 620if (position.LogicalDirection == LogicalDirection.Backward && position.Offset > 0) 653int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, startPosition.Offset); 654int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.Offset); 783sourceCharacterHit = new CharacterHit(position.Offset, 0); 787if (position.Offset > _lineMetrics[lineIndex].Offset) 790sourceCharacterHit = new CharacterHit(position.Offset - 1, 1); 816if (position.Offset == 0 && direction == LogicalDirection.Backward) 820else if (position.Offset == _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward) 827CharacterHit sourceCharacterHit = new CharacterHit(position.Offset, 0); 893if (position.Offset == 0) 900CharacterHit sourceCharacterHit = new CharacterHit(position.Offset, 0); 1447int positionsCovered = segment.End.Offset - segment.Start.Offset; 1448DirtyTextRange dirtyTextRange = new DirtyTextRange(segment.Start.Offset, positionsCovered, positionsCovered, fromHighlightLayer: true); 1656return GetLineIndexFromOffset(position.Offset, position.LogicalDirection); 1662return GetLineIndexFromOffset(position.Offset, direction); 2884_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)
506return (spellingError == null) ? -1 : spellingError.Start.Offset; 523return (spellingError == null) ? 0 : spellingError.End.Offset - spellingError.Start.Offset; 560return (position == null) ? -1 : position.Offset;
System\Windows\Documents\CompositionAdorner.cs (2)
457_startOffset = start.Offset; 458_endOffset = end.Offset;
System\Windows\Documents\FixedTextPointer.cs (1)
615/// <see cref="ITextPointer.Offset"/>
System\Windows\Documents\FlowDocument.cs (1)
1418DirtyTextRange 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)
477/// <see cref="ITextPointer.Offset"/>
System\Windows\Documents\Speller.cs (6)
838Start offset = {start.Offset} parent = {start.ParentType.Name} 839ContextStart offset = {contextStart.Offset} parent = {contextStart.ParentType.Name} 840ContentStart offset = {contentStart.Offset} parent = {contentStart.ParentType.Name} 841ContentEnd offset = {contentEnd.Offset} parent = {contentEnd.ParentType.Name} 842ContextEnd offset = {contextEnd.Offset} parent = {contextEnd.ParentType.Name} 843Timeout 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; 1239int startOffsetBefore = start.Offset; 1240int endOffsetBefore = end.Offset; 1296_previousCompositionStartOffset = start.Offset; 1297_previousCompositionEndOffset = end.Offset; 1339compositionRangeShifted = (newStart.Offset != oldStart.Offset || newEnd.Offset != oldEnd.Offset); 1350_previousCompositionStartOffset = newStart.Offset; 1351_previousCompositionEndOffset = newEnd.Offset; 1370_previousCompositionStartOffset = oldStart.Offset; 1371_previousCompositionEndOffset = oldEnd.Offset; 1406this.CompositionEventList.Add(new CompositionEventRecord(CompositionStage.EndComposition, start.Offset, end.Offset, TextRangeBase.GetTextInternal(start, end))); 2338_previousCompositionStartOffset = (_previousCompositionStart == null) ? -1 : _previousCompositionStart.Offset; 2339_previousCompositionEndOffset = (_previousCompositionEnd == null) ? -1 : _previousCompositionEnd.Offset; 3530int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3531int imeSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3770appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3771appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3797appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3798appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset;