IVsFinalTextChangeCommitEvents.OnChangesCommitted(UInt32, TextSpan[]) 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 clients of the last commit gesture to trigger the event and provide the range of text changed.
public:
void OnChangesCommitted(System::UInt32 dwGestureFlags, cli::array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsChanged);
public:
void OnChangesCommitted(unsigned int dwGestureFlags, Platform::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> ^ ptsChanged);
void OnChangesCommitted(unsigned int dwGestureFlags, std::Array <Microsoft::VisualStudio::TextManager::Interop::TextSpan> const & ptsChanged);
public void OnChangesCommitted (uint dwGestureFlags, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] ptsChanged);
abstract member OnChangesCommitted : uint32 * Microsoft.VisualStudio.TextManager.Interop.TextSpan[] -> unit
Public Sub OnChangesCommitted (dwGestureFlags As UInteger, ptsChanged As TextSpan())
Parameters
- dwGestureFlags
- UInt32
[in] Flags indicating the type of changes made. For a list of dwGestureFlags
values, see ChangeCommitGestureFlags.
- ptsChanged
- TextSpan[]
[in] Span of text modified.
Remarks
COM Signature
From textmgr.idl:
HRESULT IVsFinalTextChangeCommitEvents::OnChangesCommitted(
[in] DWORD dwGestureFlags,
[in] TextSpan *ptsChanged
);
This method is used by language services or other parties that have complete control over the editing experience and are the only intended client.
Note
When IVsFinalTextChangeCommitEvents is called by the environment it gets fired before other events such as Pretty Listing in Visual Basic. This is to ensure that the language service can update the text before other events change it.