Share via


IContainerStructureTag.SubHeadings Property

Definition

Gets the optional SubHeadingStructureData of the sub headings of the code block represented by this tag.

public System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Text.Tagging.SubHeadingStructureData>? SubHeadings { get; }
member this.SubHeadings : System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Text.Tagging.SubHeadingStructureData>
Public ReadOnly Property SubHeadings As IReadOnlyList(Of SubHeadingStructureData)

Property Value

Remarks

An Example:

try 
{
    //something;
}
catch
{
    // something else;
}

SubHeadings of the IContainerStructureTag representing "try" will contain SubHeadingSpans representing "catch" and "finally". would be the same as the HeaderSpan of the IStructureTag representing "try" statement block. This allows structure visualizing features to provide more useful context when visualizing "catch" structure blocks.

Applies to