Udostępnij za pośrednictwem


IReadOnlyRegionEdit.RemoveReadOnlyRegion(IReadOnlyRegion) Method

Definition

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.

Applies to