Represents a set of read-only region editing operations (creating and removing read-only regions on an ITextBuffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
|CreateDynamicReadOnlyRegion(Span, SpanTrackingMode, EdgeInsertionMode, DynamicReadOnlyRegionQuery)|
Marks a span of text in this buffer as conditionally read-only, subject to a check performed when the region is queried. The span remains read-only until it is marked as writable or forced writable again.
Marks a span of text in this buffer as read-only. The span remains read-only until the IReadOnlyRegion is removed.
|CreateReadOnlyRegion(Span, SpanTrackingMode, EdgeInsertionMode)|
Marks a span of text in this buffer as read-only. The span remains read-only until it is marked as writable or forced writable again.
(Inherited from IDisposable.)
Removes the read-only region from the list of read-only regions in this buffer.
Editing positions are specified with respect to the state of the ITextBuffer at the time the object was created.
At most one ITextBufferEdit object (including objects) may be active at a given time for a particular ITextBuffer. A is active as long as it has been neither applied nor canceled. Calling Dispose() on an unapplied is equivalent to calling Cancel().