Click or drag to resize
FormatCommenterTryUncommentBlock Method (VirtualSnapshotSpan, ITextEdit, BlockCommentFormat, VirtualSnapshotSpan)
Attempt to uncomment a span of text using a particular block comment format.

Namespace: Tvl.VisualStudio.Text.Commenter
Assembly: Tvl.VisualStudio.Commenter.Utility.10 (in Tvl.VisualStudio.Commenter.Utility.10.dll) Version: 1.0.0.0
Syntax
protected virtual bool TryUncommentBlock(
	VirtualSnapshotSpan span,
	ITextEdit edit,
	BlockCommentFormat format,
	out VirtualSnapshotSpan result
)

Parameters

span
Type: Microsoft.VisualStudio.TextVirtualSnapshotSpan
The span of text to uncomment.
edit
Type: Microsoft.VisualStudio.TextITextEdit
The ITextEdit instance to use for applying changes.
format
Type: Tvl.VisualStudio.Text.CommenterBlockCommentFormat
The block comment format to use for uncommenting the code.
result
Type: Microsoft.VisualStudio.TextVirtualSnapshotSpan
Upon return, a VirtualSnapshotSpan containing the uncommented code.

Return Value

Type: Boolean

if the span of text was uncommented using the specified block comment format.

-or-

false if the span of text was not a complete block comment with the specified format.

Exceptions
ExceptionCondition
ArgumentNullExceptionIf edit is .
See Also