Share via


ITextBuffer.CreateReadOnlyRegionEdit Method

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

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Function CreateReadOnlyRegionEdit As IReadOnlyRegionEdit
IReadOnlyRegionEdit CreateReadOnlyRegionEdit()
IReadOnlyRegionEdit^ CreateReadOnlyRegionEdit()
abstract CreateReadOnlyRegionEdit : unit -> IReadOnlyRegionEdit
function CreateReadOnlyRegionEdit() : IReadOnlyRegionEdit

Return Value

Type: Microsoft.VisualStudio.Text.IReadOnlyRegionEdit
A new IReadOnlyRegionEdit object.

Exceptions

Exception Condition
InvalidOperationException

Another ITextBufferEdit object is active for this text buffer.

.NET Framework Security

See Also

Reference

ITextBuffer Interface

Microsoft.VisualStudio.Text Namespace