5 implementations of Offset
PresentationFramework (5)
System\Windows\Controls\PasswordTextNavigator.cs (1)
671int ITextPointer.Offset
System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
399int ITextPointer.Offset
System\Windows\Documents\FixedTextPointer.cs (1)
616int ITextPointer.Offset
System\Windows\Documents\NullTextNavigator.cs (1)
478int ITextPointer.Offset
System\Windows\Documents\TextPointer.cs (1)
3702int ITextPointer.Offset
76 references to Offset
PresentationFramework (76)
MS\Internal\Documents\TextBoxView.cs (19)
587int offset = position.Offset; 612if (position.LogicalDirection == LogicalDirection.Forward || position.Offset == 0) 619if (position.LogicalDirection == LogicalDirection.Backward && position.Offset > 0) 652int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, startPosition.Offset); 653int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.Offset); 782sourceCharacterHit = new CharacterHit(position.Offset, 0); 786if (position.Offset > _lineMetrics[lineIndex].Offset) 789sourceCharacterHit = new CharacterHit(position.Offset - 1, 1); 815if (position.Offset == 0 && direction == LogicalDirection.Backward) 819else if (position.Offset == _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward) 826CharacterHit sourceCharacterHit = new CharacterHit(position.Offset, 0); 892if (position.Offset == 0) 899CharacterHit sourceCharacterHit = new CharacterHit(position.Offset, 0); 1446int positionsCovered = segment.End.Offset - segment.Start.Offset; 1447DirtyTextRange dirtyTextRange = new DirtyTextRange(segment.Start.Offset, positionsCovered, positionsCovered, fromHighlightLayer: true); 1655return GetLineIndexFromOffset(position.Offset, position.LogicalDirection); 1661return GetLineIndexFromOffset(position.Offset, direction); 2883_lineMetrics[_lineMetrics.Count - 1].EndOffset >= position.Offset;
MS\Internal\Documents\TextContainerHelper.cs (1)
112int cpPos = position.Offset;
MS\Internal\PtsHost\DirtyTextRange.cs (1)
39StartIndex = change.ITextPosition.Offset;
MS\Internal\PtsHost\TextParaClient.cs (2)
736int cpStartTextPointer = startPosition.Offset; 740int cpEndTextPointer = endPosition.Offset;
System\Windows\Controls\PasswordTextContainer.cs (1)
636_changes.AddChange(precursorTextChange, startPosition.Offset, symbolCount, false /* collectTextChanges */);
System\Windows\Controls\TextBox.cs (4)
505return (spellingError == null) ? -1 : spellingError.Start.Offset; 522return (spellingError == null) ? 0 : spellingError.End.Offset - spellingError.Start.Offset; 559return (position == null) ? -1 : position.Offset;
System\Windows\Documents\CompositionAdorner.cs (2)
456_startOffset = start.Offset; 457_endOffset = end.Offset;
System\Windows\Documents\FixedTextPointer.cs (1)
614/// <see cref="ITextPointer.Offset"/>
System\Windows\Documents\FlowDocument.cs (1)
1417DirtyTextRange dtr = new DirtyTextRange(textSegment.Start.Offset,
System\Windows\Documents\FrameworkTextComposition.cs (2)
202_offset = (_resultStart == null) ? -1 : _resultStart.Offset; 226_offset = (_compositionStart == null) ? -1 : _compositionStart.Offset;
System\Windows\Documents\NullTextNavigator.cs (1)
476/// <see cref="ITextPointer.Offset"/>
System\Windows\Documents\Speller.cs (6)
837Start offset = {start.Offset} parent = {start.ParentType.Name} 838ContextStart offset = {contextStart.Offset} parent = {contextStart.ParentType.Name} 839ContentStart offset = {contentStart.Offset} parent = {contentStart.ParentType.Name} 840ContentEnd offset = {contentEnd.Offset} parent = {contentEnd.ParentType.Name} 841ContextEnd offset = {contextEnd.Offset} parent = {contextEnd.ParentType.Name} 842Timeout offset = {status.TimeoutPosition.Offset} parent = {status.TimeoutPosition.ParentType.Name}
System\Windows\Documents\SpellerStatusTable.cs (2)
558if (e.ITextPosition.Offset > 0) 568if (e.ITextPosition.Offset + e.Count < e.ITextPosition.TextContainer.SymbolCount - 1)
System\Windows\Documents\TextContainer.cs (1)
699offsetPosition = position2.Offset + 1; // Convert to internal offset with +1.
System\Windows\Documents\TextParentUndoUnit.cs (4)
43_undoAnchorPositionOffset = anchorPosition.Offset; 45_undoMovingPositionOffset = movingPosition.Offset; 181_redoAnchorPositionOffset = anchorPosition.Offset; 183_redoMovingPositionOffset = movingPosition.Offset;
System\Windows\Documents\TextRangeSerialization.cs (4)
244ignoreList.Add(ptr.Offset); 278if (ignoreList.Contains(endPointer.Offset)) 280ignoreList.Remove(endPointer.Offset); 489ignoreList.Add(position.Offset);
System\Windows\Documents\TextStore.cs (24)
755_previousCompositionStartOffset = this.TextSelection.Start.Offset; 756_previousCompositionEndOffset = this.TextSelection.End.Offset; 1238int startOffsetBefore = start.Offset; 1239int endOffsetBefore = end.Offset; 1295_previousCompositionStartOffset = start.Offset; 1296_previousCompositionEndOffset = end.Offset; 1338compositionRangeShifted = (newStart.Offset != oldStart.Offset || newEnd.Offset != oldEnd.Offset); 1349_previousCompositionStartOffset = newStart.Offset; 1350_previousCompositionEndOffset = newEnd.Offset; 1369_previousCompositionStartOffset = oldStart.Offset; 1370_previousCompositionEndOffset = oldEnd.Offset; 1405this.CompositionEventList.Add(new CompositionEventRecord(CompositionStage.EndComposition, start.Offset, end.Offset, TextRangeBase.GetTextInternal(start, end))); 2337_previousCompositionStartOffset = (_previousCompositionStart == null) ? -1 : _previousCompositionStart.Offset; 2338_previousCompositionEndOffset = (_previousCompositionEnd == null) ? -1 : _previousCompositionEnd.Offset; 3529int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3530int imeSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3769appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3770appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3796appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3797appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset;