In This Article

ReadOnlyRegionTag Class

Represents an ITag that can be used to mark a text range as read-only, and can optionally associate an IClassificationType.

public class ReadOnlyRegionTag : ClassificationTag, IClassificationTag, IReadOnlyRegionTag, ITag
Inheritance:
object ClassificationTag object
Implements:
IClassificationTag IReadOnlyRegionTag ITag

Constructors

ReadOnlyRegionTag()

Initializes an instance of the class.

public ReadOnlyRegionTag()

Properties

IncludeFirstEdge

Indicates whether to consider any text ranges that align to this tag's leading (first) edge as being in the read-only region.

public bool IncludeFirstEdge { get; set; }

Property Value

bool:

true if any text ranges that align to this tag's leading (first) edge are considered as in the read-only region; otherwise, false.

IncludeLastEdge

Indicates whether to consider any text ranges that align to this tag's trailing (last) edge as being in the read-only region.

public bool IncludeLastEdge { get; set; }

Property Value

bool:

true if any text ranges that align to this tag's trailing (last) edge are considered as in the read-only region; otherwise, false.

IsReadOnly

Indicates whether the tagged text range is currently read-only.

public bool IsReadOnly { get; set; }

Property Value

bool:

true if the tagged text range is currently read-only; otherwise, false.

Inherited Members

Extension Methods