Share via


TextViewExtensions.IsReadOnlyTextView(ITextView) Method

Definition

Gets whether given ITextView is considered read-only.

public static bool IsReadOnlyTextView (this Microsoft.VisualStudio.Text.Editor.ITextView textView);
static member IsReadOnlyTextView : Microsoft.VisualStudio.Text.Editor.ITextView -> bool
<Extension()>
Public Function IsReadOnlyTextView (textView As ITextView) As Boolean

Parameters

textView
ITextView

Returns

Remarks

An ITextView is read-only if it is missing the Editable role or if ViewProhibitUserInputId is set to true. This method does not take into account whether the underlying ITextBuffer is read-only.

Applies to