Partager via


ClassifiedTextElement Class

Definition

Represents a block of classified text in an IToolTipServiceIToolTipPresenter.

public ref class ClassifiedTextElement sealed
public sealed class ClassifiedTextElement
type ClassifiedTextElement = class
Public NotInheritable Class ClassifiedTextElement
Inheritance
ClassifiedTextElement

Remarks

Classified text is a span of text with a corresponding classification type name. On StartOrUpdate(ITrackingSpan, IEnumerable<Object>), the classified text is converted to a platform-specific block of runs of formatted (colorized) text via the IViewElementFactoryService and is displayed.

Constructors

ClassifiedTextElement(ClassifiedTextRun[])

Creates a new instance of classified text.

ClassifiedTextElement(IEnumerable<ClassifiedTextRun>)

Creates a new instance of classified text.

Fields

TextClassificationTypeName

Classification name for text.

Properties

Runs

A sequence of classified runs of text.

Methods

CreateHyperlink(String, String, Action)

Creates a new element with a hyperlink.

CreatePlainText(String)

Creates a new element with plain text.

Applies to