49 references to PrecursorTextChangeType
PresentationFramework (49)
System\Windows\Controls\PasswordTextContainer.cs (7)
619private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 640Invariant.Assert(precursorTextChange == PrecursorTextChangeType.ContentAdded || precursorTextChange == PrecursorTextChangeType.ContentRemoved); 641TextChangeType textChange = (precursorTextChange == PrecursorTextChangeType.ContentAdded) ? 663PrecursorTextChangeType operation; 674operation = PrecursorTextChangeType.ContentAdded; 679operation = PrecursorTextChangeType.ContentRemoved;
System\Windows\Documents\DocumentSequenceTextContainer.cs (5)
534private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 558Invariant.Assert(precursorTextChange == PrecursorTextChangeType.ContentAdded || precursorTextChange == PrecursorTextChangeType.ContentRemoved); 559TextChangeType textChange = (precursorTextChange == PrecursorTextChangeType.ContentAdded) ? 629AddChange(changeStart, symbolCount, PrecursorTextChangeType.ContentAdded);
System\Windows\Documents\TextContainer.cs (22)
753internal void AddChange(TextPointer startPosition, int symbolCount, int charCount, PrecursorTextChangeType textChange) 760internal void AddChange(TextPointer startPosition, int symbolCount, int charCount, PrecursorTextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 762Invariant.Assert(textChange != PrecursorTextChangeType.ElementAdded && 763textChange != PrecursorTextChangeType.ElementExtracted, 773PrecursorTextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 777textChange == PrecursorTextChangeType.PropertyModified, 918AddChange(originalPosition, /* symbolCount */ textLength, /* charCount */ textLength, PrecursorTextChangeType.ContentAdded); 1113AddChange(startEdgePosition, elementText == null ? 2 : elementText.Length, deltaCharCount, PrecursorTextChangeType.ContentAdded); 1121PrecursorTextChangeType.ElementAdded, null, false); 1205AddChange(insertPosition, 1, 1, PrecursorTextChangeType.ContentAdded); 1260AddChange(deletePosition, symbolCount, charCount, PrecursorTextChangeType.ContentRemoved); 2888AddChange(startPosition, /* symbolCount */ 2, /* charCount */ imeCharCount, PrecursorTextChangeType.ContentRemoved); 2895PrecursorTextChangeType.ElementExtracted, null, false); 3322PrecursorTextChangeType precursorTextChange, DependencyProperty property, bool affectsRenderOnly) 3336if (precursorTextChange == PrecursorTextChangeType.ElementAdded) 3345else if (precursorTextChange == PrecursorTextChangeType.ElementExtracted) 3368private TextChangeType ConvertSimplePrecursorChangeToTextChange(PrecursorTextChangeType precursorTextChange) 3370Invariant.Assert(precursorTextChange != PrecursorTextChangeType.ElementAdded && precursorTextChange != PrecursorTextChangeType.ElementExtracted); 3401AddChange(startEdgePosition, /* symbolCount */ 0, /* IMECharCount */ 1, PrecursorTextChangeType.ContentAdded); 3413AddChange(startEdgePosition, /* symbolCount */ 0, /* IMECharCount */ 1, PrecursorTextChangeType.ContentRemoved); 3498_textTree.AddChange(_startPosition, _symbolCount, _charCount, PrecursorTextChangeType.ContentRemoved);
System\Windows\Documents\TextContainerChangedEventArgs.cs (14)
49internal void AddChange(PrecursorTextChangeType textChange, int offset, int length, bool collectTextChanges) 51if (textChange == PrecursorTextChangeType.ContentAdded || 52textChange == PrecursorTextChangeType.ElementAdded || 53textChange == PrecursorTextChangeType.ContentRemoved || 54textChange == PrecursorTextChangeType.ElementExtracted) 67if (textChange == PrecursorTextChangeType.ElementAdded) 72else if (textChange == PrecursorTextChangeType.ElementExtracted) 77else if (textChange == PrecursorTextChangeType.PropertyModified) 193private void AddChangeToList(PrecursorTextChangeType textChange, int offset, int length) 224if (textChange == PrecursorTextChangeType.ContentAdded || textChange == PrecursorTextChangeType.ElementAdded) 235else if (textChange == PrecursorTextChangeType.ContentRemoved || textChange == PrecursorTextChangeType.ElementExtracted) 274if (keyIndex > 0 && textChange != PrecursorTextChangeType.PropertyModified)
System\Windows\Documents\TextElement.cs (1)
1006PrecursorTextChangeType.PropertyModified, property, !affectsMeasureOrArrange);