5 implementations of Offset
PresentationFramework (5)
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
678int ITextPointer.Offset
src\Framework\System\Windows\Documents\DocumentSequenceTextPointer.cs (1)
412int ITextPointer.Offset
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
642int ITextPointer.Offset
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
486int ITextPointer.Offset
src\Framework\System\Windows\Documents\TextPointer.cs (1)
3734int ITextPointer.Offset
76 references to Offset
PresentationFramework (76)
src\Framework\MS\Internal\Documents\TextBoxView.cs (19)
636int offset = position.Offset; 661if (position.LogicalDirection == LogicalDirection.Forward || position.Offset == 0) 668if (position.LogicalDirection == LogicalDirection.Backward && position.Offset > 0) 701int startOffset = Math.Min(_lineMetrics[_lineMetrics.Count-1].EndOffset, startPosition.Offset); 702int endOffset = Math.Min(_lineMetrics[_lineMetrics.Count - 1].EndOffset, endPosition.Offset); 831sourceCharacterHit = new CharacterHit(position.Offset, 0); 835if (position.Offset > _lineMetrics[lineIndex].Offset) 838sourceCharacterHit = new CharacterHit(position.Offset - 1, 1); 864if (position.Offset == 0 && direction == LogicalDirection.Backward) 868else if (position.Offset == _host.TextContainer.SymbolCount && direction == LogicalDirection.Forward) 875CharacterHit sourceCharacterHit = new CharacterHit(position.Offset, 0); 941if (position.Offset == 0) 948CharacterHit 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); 1696return GetLineIndexFromOffset(position.Offset, position.LogicalDirection); 1702return GetLineIndexFromOffset(position.Offset, direction); 2904_lineMetrics[_lineMetrics.Count - 1].EndOffset >= position.Offset;
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (1)
121int cpPos = position.Offset;
src\Framework\MS\Internal\PtsHost\DirtyTextRange.cs (1)
47StartIndex = change.ITextPosition.Offset;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
852int cpStartTextPointer = startPosition.Offset; 856int cpEndTextPointer = endPosition.Offset;
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (1)
646_changes.AddChange(precursorTextChange, startPosition.Offset, symbolCount, false /* collectTextChanges */);
src\Framework\System\Windows\Controls\TextBox.cs (4)
538return (spellingError == null) ? -1 : spellingError.Start.Offset; 555return (spellingError == null) ? 0 : spellingError.End.Offset - spellingError.Start.Offset; 594return (position == null) ? -1 : position.Offset;
src\Framework\System\Windows\Documents\CompositionAdorner.cs (2)
463_startOffset = start.Offset; 464_endOffset = end.Offset;
src\Framework\System\Windows\Documents\FixedTextPointer.cs (1)
640/// <see cref="ITextPointer.Offset"/>
src\Framework\System\Windows\Documents\FlowDocument.cs (1)
1436DirtyTextRange dtr = new DirtyTextRange(textSegment.Start.Offset,
src\Framework\System\Windows\Documents\FrameworkTextComposition.cs (2)
234_offset = (_resultStart == null) ? -1 : _resultStart.Offset; 258_offset = (_compositionStart == null) ? -1 : _compositionStart.Offset;
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
484/// <see cref="ITextPointer.Offset"/>
src\Framework\System\Windows\Documents\Speller.cs (6)
915"Start offset = " + start.Offset + " parent = " + start.ParentType.Name + "\n" + 916"ContextStart offset = " + contextStart.Offset + " parent = " + contextStart.ParentType.Name + "\n" + 917"ContentStart offset = " + contentStart.Offset + " parent = " + contentStart.ParentType.Name + "\n" + 918"ContentEnd offset = " + contentEnd.Offset + " parent = " + contentEnd.ParentType.Name + "\n" + 919"ContextEnd offset = " + contextEnd.Offset + " parent = " + contextEnd.ParentType.Name + "\n" + 920"Timeout offset = " + status.TimeoutPosition.Offset + " parent = " + status.TimeoutPosition.ParentType.Name + "\n" +
src\Framework\System\Windows\Documents\SpellerStatusTable.cs (2)
561if (e.ITextPosition.Offset > 0) 571if (e.ITextPosition.Offset + e.Count < e.ITextPosition.TextContainer.SymbolCount - 1)
src\Framework\System\Windows\Documents\TextContainer.cs (1)
720offsetPosition = position2.Offset + 1; // Convert to internal offset with +1.
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (4)
60_undoAnchorPositionOffset = anchorPosition.Offset; 62_undoMovingPositionOffset = movingPosition.Offset; 198_redoAnchorPositionOffset = anchorPosition.Offset; 200_redoMovingPositionOffset = movingPosition.Offset;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (4)
257ignoreList.Add(ptr.Offset); 291if (ignoreList.Contains(endPointer.Offset)) 293ignoreList.Remove(endPointer.Offset); 502ignoreList.Add(position.Offset);
src\Framework\System\Windows\Documents\TextStore.cs (24)
635_previousCompositionStartOffset = this.TextSelection.Start.Offset; 636_previousCompositionEndOffset = this.TextSelection.End.Offset; 1125int startOffsetBefore = start.Offset; 1126int endOffsetBefore = end.Offset; 1182_previousCompositionStartOffset = start.Offset; 1183_previousCompositionEndOffset = end.Offset; 1219compositionRangeShifted = (newStart.Offset != oldStart.Offset || newEnd.Offset != oldEnd.Offset); 1230_previousCompositionStartOffset = newStart.Offset; 1231_previousCompositionEndOffset = newEnd.Offset; 1250_previousCompositionStartOffset = oldStart.Offset; 1251_previousCompositionEndOffset = oldEnd.Offset; 1280this.CompositionEventList.Add(new CompositionEventRecord(CompositionStage.EndComposition, start.Offset, end.Offset, TextRangeBase.GetTextInternal(start, end))); 2219_previousCompositionStartOffset = (_previousCompositionStart == null) ? -1 : _previousCompositionStart.Offset; 2220_previousCompositionEndOffset = (_previousCompositionEnd == null) ? -1 : _previousCompositionEnd.Offset; 3458int imeSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3459int imeSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3649appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3650appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset; 3676appSelectionAnchorOffset = this.TextSelection.AnchorPosition.Offset; 3677appSelectionMovingOffset = this.TextSelection.MovingPosition.Offset;