StructureTag Class

Definition

An implementation of IStructureTag2.

C++
public ref class StructureTag : Microsoft::VisualStudio::Text::Tagging::IStructureTag, Microsoft::VisualStudio::Text::Tagging::ITag
Inheritance
StructureTag
Derived
Implements

Remarks

Using this class is the recommended way to create an instance of IStructureElement for most purposes.

Constructors

Properties

GuideLineHorizontalAnchorPoint

Gets the point with which the block structure adornment will be horizontally aligned.

GuideLineSpan

Gets the vertical span within which the block structure adornment will be drawn.

HeaderSpan

Gets the span of the statement that controls the structural block.

IsCollapsible

Determines whether or not a block can be collapsed.

IsDefaultCollapsed

Determines whether a block is collapsed by default.

IsImplementation

Determines whether a StructureTag represents an implementation block region.

OutliningSpan

Gets the span containing the entire contents of the block (minus the block header). This span will be collapsed or expanded when the block outlining adornment is invoked.

PrimaryHeaderSpan

Gets the optional Span of the primary header of the code block represented by this tag.

Snapshot

The Snapshot from which this structure tag was generated.

Type

Determines the semantic type of the structural block.

Methods

GetCollapsedForm()

Gets the data object for the collapsed UI. If the default is set, returns null.

GetCollapsedHintForm()

Gets the data object for the collapsed UI tooltip. If the default is set, returns null.

Applies to

Proizvod Verzije
Visual Studio SDK 2017, 2019, 2022