IVsTextBufferProvider::LockTextBuffer Method (Int32)
Visual Studio 2015
Locks the text buffer to prevent editing.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- fLock
-
Type:
System::Int32
[in] Set to true to lock the text buffer, or false to unlock the text buffer.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsTextBufferProvider::LockTextBuffer(
[in] BOOL fLock
);
Show: