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