49 references to PrecursorTextChangeType
PresentationFramework (49)
System\Windows\Controls\PasswordTextContainer.cs (7)
623private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 644Invariant.Assert(precursorTextChange == PrecursorTextChangeType.ContentAdded || precursorTextChange == PrecursorTextChangeType.ContentRemoved); 645TextChangeType textChange = (precursorTextChange == PrecursorTextChangeType.ContentAdded) ? 667PrecursorTextChangeType operation; 678operation = PrecursorTextChangeType.ContentAdded; 683operation = PrecursorTextChangeType.ContentRemoved;
System\Windows\Documents\DocumentSequenceTextContainer.cs (5)
552private void AddChange(ITextPointer startPosition, int symbolCount, PrecursorTextChangeType precursorTextChange) 576Invariant.Assert(precursorTextChange == PrecursorTextChangeType.ContentAdded || precursorTextChange == PrecursorTextChangeType.ContentRemoved); 577TextChangeType textChange = (precursorTextChange == PrecursorTextChangeType.ContentAdded) ? 647AddChange(changeStart, symbolCount, PrecursorTextChangeType.ContentAdded);
System\Windows\Documents\TextContainer.cs (22)
759internal void AddChange(TextPointer startPosition, int symbolCount, int charCount, PrecursorTextChangeType textChange) 766internal void AddChange(TextPointer startPosition, int symbolCount, int charCount, PrecursorTextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 768Invariant.Assert(textChange != PrecursorTextChangeType.ElementAdded && 769textChange != PrecursorTextChangeType.ElementExtracted, 779PrecursorTextChangeType textChange, DependencyProperty property, bool affectsRenderOnly) 783textChange == PrecursorTextChangeType.PropertyModified, 924AddChange(originalPosition, /* symbolCount */ textLength, /* charCount */ textLength, PrecursorTextChangeType.ContentAdded); 1122AddChange(startEdgePosition, elementText == null ? 2 : elementText.Length, deltaCharCount, PrecursorTextChangeType.ContentAdded); 1130PrecursorTextChangeType.ElementAdded, null, false); 1214AddChange(insertPosition, 1, 1, PrecursorTextChangeType.ContentAdded); 1272AddChange(deletePosition, symbolCount, charCount, PrecursorTextChangeType.ContentRemoved); 2924AddChange(startPosition, /* symbolCount */ 2, /* charCount */ imeCharCount, PrecursorTextChangeType.ContentRemoved); 2931PrecursorTextChangeType.ElementExtracted, null, false); 3361PrecursorTextChangeType precursorTextChange, DependencyProperty property, bool affectsRenderOnly) 3375if (precursorTextChange == PrecursorTextChangeType.ElementAdded) 3384else if (precursorTextChange == PrecursorTextChangeType.ElementExtracted) 3407private TextChangeType ConvertSimplePrecursorChangeToTextChange(PrecursorTextChangeType precursorTextChange) 3409Invariant.Assert(precursorTextChange != PrecursorTextChangeType.ElementAdded && precursorTextChange != PrecursorTextChangeType.ElementExtracted); 3440AddChange(startEdgePosition, /* symbolCount */ 0, /* IMECharCount */ 1, PrecursorTextChangeType.ContentAdded); 3452AddChange(startEdgePosition, /* symbolCount */ 0, /* IMECharCount */ 1, PrecursorTextChangeType.ContentRemoved); 3537_textTree.AddChange(_startPosition, _symbolCount, _charCount, PrecursorTextChangeType.ContentRemoved);
System\Windows\Documents\TextContainerChangedEventArgs.cs (14)
53internal void AddChange(PrecursorTextChangeType textChange, int offset, int length, bool collectTextChanges) 55if (textChange == PrecursorTextChangeType.ContentAdded || 56textChange == PrecursorTextChangeType.ElementAdded || 57textChange == PrecursorTextChangeType.ContentRemoved || 58textChange == PrecursorTextChangeType.ElementExtracted) 71if (textChange == PrecursorTextChangeType.ElementAdded) 76else if (textChange == PrecursorTextChangeType.ElementExtracted) 81else if (textChange == PrecursorTextChangeType.PropertyModified) 197private void AddChangeToList(PrecursorTextChangeType textChange, int offset, int length) 226if (textChange == PrecursorTextChangeType.ContentAdded || textChange == PrecursorTextChangeType.ElementAdded) 237else if (textChange == PrecursorTextChangeType.ContentRemoved || textChange == PrecursorTextChangeType.ElementExtracted) 276if (keyIndex > 0 && textChange != PrecursorTextChangeType.PropertyModified)
System\Windows\Documents\TextElement.cs (1)
1022PrecursorTextChangeType.PropertyModified, property, !affectsMeasureOrArrange);