IReadOnlyRegionEdit::RemoveReadOnlyRegion Method (IReadOnlyRegion^)

 

Removes the read-only region from the list of read-only regions in this buffer.

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

void RemoveReadOnlyRegion(
	IReadOnlyRegion^ readOnlyRegion
)

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.

Return to top
Show: