ITextBuffer.CreateReadOnlyRegionEdit 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.
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.