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 a new instance of the ReadOnlyRegionTag
class.
public ReadOnlyRegionTag()
Properties
IncludeFirstEdge
Gets or sets 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
- Boolean:
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
Gets or sets 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
- Boolean:
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
Gets or sets whether the tagged text range is currently read-only.
public bool IsReadOnly { get; set; }
Property Value
- Boolean:
true
if the tagged text range is currently read-only; otherwise,false
.