| FormatCommenter Constructor (ITextBuffer, CommentFormat) |
Initializes a new instance of the
FormatCommenter class for the specified text buffer, undo
history, and comment formats.
Namespace: Tvl.VisualStudio.Text.CommenterAssembly: Tvl.VisualStudio.Commenter.Utility.10 (in Tvl.VisualStudio.Commenter.Utility.10.dll) Version: 1.0.0.0
Syntax public FormatCommenter(
ITextBuffer textBuffer,
params CommentFormat[] commentFormats
)
Public Sub New (
textBuffer As ITextBuffer,
ParamArray commentFormats As CommentFormat()
)
public:
FormatCommenter(
ITextBuffer^ textBuffer,
... array<CommentFormat^>^ commentFormats
)
new :
textBuffer : ITextBuffer *
commentFormats : CommentFormat[] -> FormatCommenter
Parameters
- textBuffer
- Type: Microsoft.VisualStudio.TextITextBuffer
The text buffer. - commentFormats
- Type: Tvl.VisualStudio.Text.CommenterCommentFormat
A collection of CommentFormat instances describing the comment
formats supported by this commenter.
Exceptions See Also