Compartir a través de


BlockTag Class

Definition

Caution

Use StructureTag instead

An implementation of IBlockTag.

public ref class BlockTag abstract : Microsoft::VisualStudio::Text::Tagging::IBlockTag, Microsoft::VisualStudio::Text::Tagging::ITag
[Windows::Foundation::Metadata::WebHostHidden]
class BlockTag abstract : Microsoft::VisualStudio::Text::Tagging::IBlockTag, Microsoft::VisualStudio::Text::Tagging::ITag
public abstract class BlockTag : Microsoft.VisualStudio.Text.Tagging.IBlockTag, Microsoft.VisualStudio.Text.Tagging.ITag
[System.Obsolete("Use StructureTag instead")]
public abstract class BlockTag : Microsoft.VisualStudio.Text.Tagging.IBlockTag, Microsoft.VisualStudio.Text.Tagging.ITag
type BlockTag = class
    interface IBlockTag
    interface ITag
[<System.Obsolete("Use StructureTag instead")>]
type BlockTag = class
    interface IBlockTag
    interface ITag
Public MustInherit Class BlockTag
Implements IBlockTag, ITag
Inheritance
BlockTag
Attributes
Implements

Constructors

BlockTag(SnapshotSpan, SnapshotSpan, IBlockTag, String, Boolean, Boolean, Boolean, Object, Object)

Properties

CollapsedForm

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

CollapsedHintForm

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

IsCollapsible

Determines whether a block can be collapsed.

IsDefaultCollapsed

Determines whether a block is collapsed by default.

IsImplementation

Determines whether a block is an block region.

Level

Gets the level of nested-ness of the structural block.

Parent

Gets the hierarchical parent of the structural block.

Span

Gets the span of the structural block.

StatementSpan

Gets the span of the statement that control the structral block.

Type

Determines the semantic type of the structural block. See PredefinedStructureTypes for the canonical types. Use Nonstructural for blocks that will not have any visible affordance (but will be used for outlining).

Applies to