TextViewExtensions.IsReadOnlyTextView(ITextView) Method

Definition

Gets whether given ITextView is considered read-only.

C#
public static bool IsReadOnlyTextView(this Microsoft.VisualStudio.Text.Editor.ITextView textView);

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

Produkt Versiounen
Visual Studio SDK 2022