TextViewExtensions.IsReadOnlyTextView(ITextView) 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.
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.