IContainerStructureTag.SubHeadings 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 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.