次の方法で共有


ITextBuffer.CreateReadOnlyRegionEdit Method

Definition

Creates an IReadOnlyRegionEdit object that handles adding or removing read-only regions from this buffer.

public:
 Microsoft::VisualStudio::Text::IReadOnlyRegionEdit ^ CreateReadOnlyRegionEdit();
public Microsoft.VisualStudio.Text.IReadOnlyRegionEdit CreateReadOnlyRegionEdit ();
abstract member CreateReadOnlyRegionEdit : unit -> Microsoft.VisualStudio.Text.IReadOnlyRegionEdit
Public Function CreateReadOnlyRegionEdit () As IReadOnlyRegionEdit

Returns

A new IReadOnlyRegionEdit object.

Exceptions

Another ITextBufferEdit object is active for this text buffer, or CheckEditAccess() would return false.

Applies to