Partilhar via


BlockTag.StatementSpan Property

Definition

Gets the span of the statement that control the structral block.

public:
 virtual property Microsoft::VisualStudio::Text::SnapshotSpan StatementSpan { Microsoft::VisualStudio::Text::SnapshotSpan get(); void set(Microsoft::VisualStudio::Text::SnapshotSpan value); };
public virtual Microsoft.VisualStudio.Text.SnapshotSpan StatementSpan { get; set; }
member this.StatementSpan : Microsoft.VisualStudio.Text.SnapshotSpan with get, set
Public Overridable 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