Share via


IReadOnlyRegion Interface

Tracks a possibly empty read-only region of text.

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

Syntax

'Declaration
Public Interface IReadOnlyRegion
public interface IReadOnlyRegion
public interface class IReadOnlyRegion
type IReadOnlyRegion =  interface end
public interface IReadOnlyRegion

The IReadOnlyRegion type exposes the following members.

Properties

  Name Description
Public property EdgeInsertionMode The edge insertion behavior of the read-only region.
Public property QueryCallback The delegate that notifies the read-only region of read-only checks and edits.
Public property Span The span of text marked read-only by this region.

Top

Remarks

Read-only regions prevent edits only on their owning buffer, not on other buffers that may be associated with them.

The text in a read-only region is not necessarily immutable; a read-only region created on a projection buffer makes that region read-only to clients of the projection buffer but does not affect the source buffers for that text.

A zero-length read-only region that prohibits edge insertions prevents insertions only at its starting position, but allows deletions and modifications that span that position.

A zero-length read-only region that does not prohibit edge insertions does not prevent any kind of insertion.

See Also

Reference

Microsoft.VisualStudio.Text Namespace