IReadOnlyRegionEdit.RemoveReadOnlyRegion(IReadOnlyRegion) 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.
Removes the read-only region from the list of read-only regions in this buffer.
public:
void RemoveReadOnlyRegion(Microsoft::VisualStudio::Text::IReadOnlyRegion ^ readOnlyRegion);
public:
void RemoveReadOnlyRegion(Microsoft::VisualStudio::Text::IReadOnlyRegion ^ readOnlyRegion);
void RemoveReadOnlyRegion(Microsoft::VisualStudio::Text::IReadOnlyRegion const & readOnlyRegion);
public void RemoveReadOnlyRegion (Microsoft.VisualStudio.Text.IReadOnlyRegion readOnlyRegion);
abstract member RemoveReadOnlyRegion : Microsoft.VisualStudio.Text.IReadOnlyRegion -> unit
Public Sub RemoveReadOnlyRegion (readOnlyRegion As IReadOnlyRegion)
Parameters
- readOnlyRegion
- IReadOnlyRegion
The read-only region to remove.
Exceptions
readOnlyRegion
is null.
readOnlyRegion
was created on another buffer.
Remarks
Removing a read-only region that has already been removed does nothing.