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