IBlockTag.StatementSpan Property

Definition

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 "}".

Applies to