Skip to content

Latest commit

 

History

History
194 lines (152 loc) · 5.18 KB

nf-textstor-itextstoreanchorsink-ontextchange.md

File metadata and controls

194 lines (152 loc) · 5.18 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:textstor.ITextStoreAnchorSink.OnTextChange
ITextStoreAnchorSink::OnTextChange (textstor.h)
ITextStoreAnchorSink::OnTextChange method
0
ITextStoreAnchorSink interface [Text Services Framework]
OnTextChange method
ITextStoreAnchorSink.OnTextChange
ITextStoreAnchorSink::OnTextChange
OnTextChange
OnTextChange method [Text Services Framework]
OnTextChange method [Text Services Framework]
ITextStoreAnchorSink interface
TS_TC_CORRECTION
_tsf_itextstoreanchorsink_ontextchange_ref
textstor/ITextStoreAnchorSink::OnTextChange
tsf.itextstoreanchorsink_ontextchange
tsf\itextstoreanchorsink_ontextchange.htm
TSF
4bdf12bc-c15e-4bdb-8bc0-53172e9c943e
12/05/2018
0, ITextStoreAnchorSink interface [Text Services Framework],OnTextChange method, ITextStoreAnchorSink.OnTextChange, ITextStoreAnchorSink::OnTextChange, OnTextChange, OnTextChange method [Text Services Framework], OnTextChange method [Text Services Framework],ITextStoreAnchorSink interface, TS_TC_CORRECTION, _tsf_itextstoreanchorsink_ontextchange_ref, textstor/ITextStoreAnchorSink::OnTextChange, tsf.itextstoreanchorsink_ontextchange
textstor.h
Windows
Windows 2000 Professional [desktop apps \| UWP apps]
Windows 2000 Server [desktop apps \| UWP apps]
Textstor.idl
Msctf.dll
Windows
TSF 1.0 on Windows 2000 Professional
19H1
ITextStoreAnchorSink::OnTextChange
textstor/ITextStoreAnchorSink::OnTextChange
c++
APIRef
kbSyntax
COM
msctf.dll
ITextStoreAnchorSink.OnTextChange

ITextStoreAnchorSink::OnTextChange

-description

Called when text in the text stream changes.

-parameters

-param dwFlags [in]

Contains a set of flags that specify additional information about the text change. This can be one or more of the following values.

Value Meaning
0
The text has changed.
TS_TC_CORRECTION
The text is a transform (correction) of existing content, and any special text markup information (metadata) is retained, such as .wav file data or a language identifier. This flag is used for applications that need to preserve data associated with the original text.

-param paStart [in]

Pointer to an anchor located at the start of the changed text.

-param paEnd [in]

Pointer to an anchor located at the end of the changed text.

-returns

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_FAIL
The method was unable to create cloned anchors to contain the change.
E_INVALIDARG
paStart or paEnd is invalid.
E_OUTOFMEMORY
A memory allocation failure occurred.
TS_E_NOLOCK
The TSF manager holds a lock on the document. This typically indicates that the method was called from within another ITextStoreAnchor method, such as ITextStoreAnchor::SetText.

-remarks

This method is called only when the application modifies its own text, not when a client modifies text with one of the ITextStoreAnchor methods, such as ITextStoreAnchor::SetText or ITextStoreAnchor::InsertTextAtSelection.

When calling this method, the application must be able to grant a document lock.

-see-also

Document Locks

ITextStoreAnchor

ITextStoreAnchor::InsertTextAtSelection

ITextStoreAnchor::SetText

ITextStoreAnchorSink

Miscellaneous Text Store Constants