XmlLineCommenter Class
Provides a XML language line commenter service.
public class XmlLineCommenter : RangeLineCommenter, ILineCommenter
- Inheritance:
- object RangeLineCommenter object
- Implements:
- ILineCommenter
Constructors
XmlLineCommenter()
Initializes an instance of the class.
public XmlLineCommenter()
Methods
Comment(ITextSnapshot?, ITextPositionRangeCollection, ITextChangeOptions)
Comments out the lines of code in the specified position ranges.
public override void Comment(ITextSnapshot? snapshot, ITextPositionRangeCollection positionRanges, ITextChangeOptions options)
| Parameter | Type | Description |
|---|---|---|
| snapshot | ITextSnapshot | The target ITextSnapshot. |
| positionRanges | ITextPositionRangeCollection | The ITextPositionRangeCollection indicating the position ranges over which to comment lines. |
| options | ITextChangeOptions | The ITextChangeOptions for the change. |
FindCommentTextRange(TextSnapshotRange)
Returns the full text range of the comment that surrounds the specified snapshot range, if any.
protected override TextRange? FindCommentTextRange(TextSnapshotRange snapshotRange)
| Parameter | Type | Description |
|---|---|---|
| snapshotRange | TextSnapshotRange | The TextSnapshotRange to examine. |
Returns
Inherited Members
- RangeLineCommenter.Uncomment(ITextSnapshot, ITextPositionRangeCollection, ITextChangeOptions)
- RangeLineCommenter.CommentTokenId
- RangeLineCommenter.EndDelimiter
- RangeLineCommenter.StartDelimiter
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()