StructureTag Class

Definition

An implementation of IStructureTag.

public ref class StructureTag : Microsoft::VisualStudio::Text::Tagging::IStructureTag, Microsoft::VisualStudio::Text::Tagging::ITag
public class StructureTag : Microsoft.VisualStudio.Text.Tagging.IStructureTag, Microsoft.VisualStudio.Text.Tagging.ITag
type StructureTag = class
    interface IStructureTag
    interface ITag
Public Class StructureTag
Implements IStructureTag, ITag
Inheritance
StructureTag
Implements

Remarks

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

Constructors

StructureTag(ITextSnapshot, Nullable<Span>, Nullable<Span>, Nullable<Span>, Nullable<Int32>, String, Boolean, Boolean, Boolean, Object, Object)

Constructs an instance of the IStructureTag.

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.

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