Click or drag to resize
FormatCommenter Constructor (ITextBuffer, IEnumerableCommentFormat)
Initializes a new instance of the FormatCommenter class for the specified text buffer, undo history, and comment formats.

Namespace: Tvl.VisualStudio.Text.Commenter
Assembly: Tvl.VisualStudio.Commenter.Utility.10 (in Tvl.VisualStudio.Commenter.Utility.10.dll) Version: 1.0.0.0
Syntax
public FormatCommenter(
	ITextBuffer textBuffer,
	IEnumerable<CommentFormat> commentFormats
)

Parameters

textBuffer
Type: Microsoft.VisualStudio.TextITextBuffer
The text buffer.
commentFormats
Type: System.Collections.GenericIEnumerableCommentFormat
A collection of CommentFormat instances describing the comment formats supported by this commenter.
Exceptions
ExceptionCondition
ArgumentNullException

If textBuffer is .

-or-

If commentFormats is .

ArgumentException If commentFormats contains any entries.
See Also