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
'Dichiarazione
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.