5 implementations of Offset
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
676int ITextPointer.Offset
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
408int ITextPointer.Offset
System\Windows\Documents\FixedTextPointer.cs (1)
624int ITextPointer.Offset
System\Windows\Documents\NullTextNavigator.cs (1)
484int ITextPointer.Offset
System\Windows\Documents\TextPointer.cs (1)
3708int ITextPointer.Offset
76 references to Offset
PresentationFramework (76)
MS\Internal\Documents\TextBoxView.cs (19)
632int offset = position.Offset; 657if (position.LogicalDirection == LogicalDirection.Forward || position.Offset == 0) 664if (position.LogicalDirection == LogicalDirection.Backward && position.Offset > 0) 697int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, startPosition.Offset); 698int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.Offset); 827sourceCharacterHit = new CharacterHit(position.Offset, 0); 831if (position.Offset > _lineMetrics[lineIndex].Offset) 834sourceCharacterHit = new CharacterHit(position.Offset - 1, 1); 860if (position.Offset == 0 && direction == LogicalDirection.Backward) 864else if (position.Offset == _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward) 871CharacterHit sourceCharacterHit = new CharacterHit(position.Offset, 0); 937if (position.Offset == 0) 944CharacterHit sourceCharacterHit = new CharacterHit(position.Offset, 0); 1489int positionsCovered = segment.End.Offset - segment.Start.Offset; 1490DirtyTextRange dirtyTextRange = new DirtyTextRange(segment.Start.Offset, positionsCovered, positionsCovered, fromHighlightLayer: true); 1698return GetLineIndexFromOffset(position.Offset, position.LogicalDirection); 1704return GetLineIndexFromOffset(position.Offset, direction); 2926_lineMetrics[_lineMetrics.Count - 1].EndOffset >= position.Offset;
MS\Internal\Documents\TextContainerHelper.cs (1)
116int cpPos = position.Offset;
MS\Internal\PtsHost\DirtyTextRange.cs (1)
42StartIndex = change.ITextPosition.Offset;
MS\Internal\PtsHost\TextParaClient.cs (2)
743int cpStartTextPointer = startPosition.Offset; 747int cpEndTextPointer = endPosition.Offset;
System\Windows\Controls\PasswordTextContainer.cs (1)
640_changes.AddChange(precursorTextChange, startPosition.Offset, symbolCount, false /* collectTextChanges */);
System\Windows\Controls\TextBox.cs (4)
511return (spellingError == null) ? -1 : spellingError.Start.Offset; 528return (spellingError == null) ? 0 : spellingError.End.Offset - spellingError.Start.Offset; 565return (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)
1427DirtyTextRange 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)
858Start offset = {start.Offset} parent = {start.ParentType.Name} 859ContextStart offset = {contextStart.Offset} parent = {contextStart.ParentType.Name} 860ContentStart offset = {contentStart.Offset} parent = {contentStart.ParentType.Name} 861ContentEnd offset = {contentEnd.Offset} parent = {contentEnd.ParentType.Name} 862ContextEnd offset = {contextEnd.Offset} parent = {contextEnd.ParentType.Name} 863Timeout offset = {status.TimeoutPosition.Offset} parent = {status.TimeoutPosition.ParentType.Name}
System\Windows\Documents\SpellerStatusTable.cs (2)
561if (e.ITextPosition.Offset > 0) 571if (e.ITextPosition.Offset + e.Count < e.ITextPosition.TextContainer.SymbolCount - 1)
System\Windows\Documents\TextContainer.cs (1)
705offsetPosition = 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)
251ignoreList.Add(ptr.Offset); 285if (ignoreList.Contains(endPointer.Offset)) 287ignoreList.Remove(endPointer.Offset); 496ignoreList.Add(position.Offset);
System\Windows\Documents\TextStore.cs (24)
767_previousCompositionStartOffset = this.TextSelection.Start.Offset; 768_previousCompositionEndOffset = this.TextSelection.End.Offset; 1253int startOffsetBefore = start.Offset; 1254int endOffsetBefore = end.Offset; 1310_previousCompositionStartOffset = start.Offset; 1311_previousCompositionEndOffset = end.Offset; 1353compositionRangeShifted = (newStart.Offset != oldStart.Offset || newEnd.Offset != oldEnd.Offset); 1364_previousCompositionStartOffset = newStart.Offset; 1365_previousCompositionEndOffset = newEnd.Offset; 1384_previousCompositionStartOffset = oldStart.Offset; 1385_previousCompositionEndOffset = oldEnd.Offset; 1420this.CompositionEventList.Add(new CompositionEventRecord(CompositionStage.EndComposition, start.Offset, end.Offset, TextRangeBase.GetTextInternal(start, end))); 2364_previousCompositionStartOffset = (_previousCompositionStart == null) ? -1 : _previousCompositionStart.Offset; 2365_previousCompositionEndOffset = (_previousCompositionEnd == null) ? -1 : _previousCompositionEnd.Offset; 3557int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3558int imeSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3797appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3798appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3824appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3825appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset;