IVsTextBufferProvider::LockTextBuffer Method (Int32)

 

Locks the text buffer to prevent editing.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int LockTextBuffer(
	int fLock
)

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::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsTextBufferProvider::LockTextBuffer(
   [in] BOOL fLock
);
Return to top
Show: