49 references to PrecursorTextChangeType
PresentationFramework (49)
src\Framework\System\Windows\Controls\PasswordTextContainer.cs (7)
629private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 650Invariant.Assert(precursorTextChange == PrecursorTextChangeType.ContentAdded || precursorTextChange == PrecursorTextChangeType.ContentRemoved); 651TextChangeType textChange = (precursorTextChange == PrecursorTextChangeType.ContentAdded) ? 673PrecursorTextChangeType operation; 684operation = PrecursorTextChangeType.ContentAdded; 689operation = PrecursorTextChangeType.ContentRemoved;
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (5)
559private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 583Invariant.Assert(precursorTextChange == PrecursorTextChangeType.ContentAdded || precursorTextChange == PrecursorTextChangeType.ContentRemoved); 584TextChangeType textChange = (precursorTextChange == PrecursorTextChangeType.ContentAdded) ? 655AddChange(changeStart, symbolCount, PrecursorTextChangeType.ContentAdded);
src\Framework\System\Windows\Documents\TextContainer.cs (22)
774internal void AddChange(TextPointer startPosition, int symbolCount, int charCount, PrecursorTextChangeType textChange) 781internal void AddChange(TextPointer startPosition, int symbolCount, int charCount, PrecursorTextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 783Invariant.Assert(textChange != PrecursorTextChangeType.ElementAdded && 784textChange != PrecursorTextChangeType.ElementExtracted, 794PrecursorTextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 798textChange == PrecursorTextChangeType.PropertyModified, 939AddChange(originalPosition, /* symbolCount */ textLength, /* charCount */ textLength, PrecursorTextChangeType.ContentAdded); 1137AddChange(startEdgePosition, elementText == null ? 2 : elementText.Length, deltaCharCount, PrecursorTextChangeType.ContentAdded); 1145PrecursorTextChangeType.ElementAdded, null, false); 1229AddChange(insertPosition, 1, 1, PrecursorTextChangeType.ContentAdded); 1287AddChange(deletePosition, symbolCount, charCount, PrecursorTextChangeType.ContentRemoved); 2939AddChange(startPosition, /* symbolCount */ 2, /* charCount */ imeCharCount, PrecursorTextChangeType.ContentRemoved); 2946PrecursorTextChangeType.ElementExtracted, null, false); 3377PrecursorTextChangeType precursorTextChange, DependencyProperty property, bool affectsRenderOnly) 3391if (precursorTextChange == PrecursorTextChangeType.ElementAdded) 3400else if (precursorTextChange == PrecursorTextChangeType.ElementExtracted) 3423private TextChangeType ConvertSimplePrecursorChangeToTextChange(PrecursorTextChangeType precursorTextChange) 3425Invariant.Assert(precursorTextChange != PrecursorTextChangeType.ElementAdded && precursorTextChange != PrecursorTextChangeType.ElementExtracted); 3456AddChange(startEdgePosition, /* symbolCount */ 0, /* IMECharCount */ 1, PrecursorTextChangeType.ContentAdded); 3468AddChange(startEdgePosition, /* symbolCount */ 0, /* IMECharCount */ 1, PrecursorTextChangeType.ContentRemoved); 3553_textTree.AddChange(_startPosition, _symbolCount, _charCount, PrecursorTextChangeType.ContentRemoved);
src\Framework\System\Windows\Documents\TextContainerChangedEventArgs.cs (14)
57internal void AddChange(PrecursorTextChangeType textChange, int offset, int length, bool collectTextChanges) 59if (textChange == PrecursorTextChangeType.ContentAdded || 60textChange == PrecursorTextChangeType.ElementAdded || 61textChange == PrecursorTextChangeType.ContentRemoved || 62textChange == PrecursorTextChangeType.ElementExtracted) 75if (textChange == PrecursorTextChangeType.ElementAdded) 80else if (textChange == PrecursorTextChangeType.ElementExtracted) 85else if (textChange == PrecursorTextChangeType.PropertyModified) 201private void AddChangeToList(PrecursorTextChangeType textChange, int offset, int length) 230if (textChange == PrecursorTextChangeType.ContentAdded || textChange == PrecursorTextChangeType.ElementAdded) 241else if (textChange == PrecursorTextChangeType.ContentRemoved || textChange == PrecursorTextChangeType.ElementExtracted) 280if (keyIndex > 0 && textChange != PrecursorTextChangeType.PropertyModified)
src\Framework\System\Windows\Documents\TextElement.cs (1)
1067PrecursorTextChangeType.PropertyModified, property, !affectsMeasureOrArrange);