IBlockTag.StatementSpan Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the span of the statement that control the structral block.
public:
property Microsoft::VisualStudio::Text::SnapshotSpan StatementSpan { Microsoft::VisualStudio::Text::SnapshotSpan get(); };
public Microsoft.VisualStudio.Text.SnapshotSpan StatementSpan { get; }
member this.StatementSpan : Microsoft.VisualStudio.Text.SnapshotSpan
Public ReadOnly Property StatementSpan As SnapshotSpan
Property Value
Remarks
For example, in the following snippet of code,
if (condition1 &&
condition2) // comment
{
something;
}
this.StatementSpan
would extend from the start of the "if" to the end of comment. this.Span
would extend from before the "{" to the end of the "}".