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