CoreTextEditContext.NotifyTextChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies the text input server about any change that the text input control needs to make to the text. This is important in order to keep the internal state of the control and the internal state of the server synchronized. Since a change to the text is also likely to affect the selection range, the method takes the selection range as a parameter.
public:
virtual void NotifyTextChanged(CoreTextRange modifiedRange, int newLength, CoreTextRange newSelection) = NotifyTextChanged;
void NotifyTextChanged(CoreTextRange const& modifiedRange, int const& newLength, CoreTextRange const& newSelection);
public void NotifyTextChanged(CoreTextRange modifiedRange, int newLength, CoreTextRange newSelection);
function notifyTextChanged(modifiedRange, newLength, newSelection)
Public Sub NotifyTextChanged (modifiedRange As CoreTextRange, newLength As Integer, newSelection As CoreTextRange)
Parameters
- modifiedRange
- CoreTextRange
The range of text to replace, in terms of the state the text buffer is in prior to this text change.
- newLength
-
Int32
int
The length of the text that should replace modifiedRange.
- newSelection
- CoreTextRange
The range of selection in effect after the text change.