IReadOnlyRegionEdit::RemoveReadOnlyRegion Method (IReadOnlyRegion^)
Visual Studio 2015
Removes the read-only region from the list of read-only regions in this buffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- readOnlyRegion
-
Type:
Microsoft.VisualStudio.Text::IReadOnlyRegion^
The read-only region to remove.
| Exception | Condition |
|---|---|
| ArgumentNullException | readOnlyRegion is null. |
| InvalidOperationException | readOnlyRegion was created on another buffer. |
Removing a read-only region that has already been removed does nothing.
Show: