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