共用方式為


IVsTextViewEx.IsReadOnly Method

Determines if the text view is read-only.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (in Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Syntax

'宣告
Function IsReadOnly As Integer
int IsReadOnly()
int IsReadOnly()
abstract IsReadOnly : unit -> int 
function IsReadOnly() : int

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK to indicate read-only text view. If it fails, it returns an error code.

.NET Framework Security

See Also

Reference

IVsTextViewEx Interface

Microsoft.VisualStudio.TextManager.Interop Namespace