Compartir a través de


ClassifiedTextRun Constructors

Definition

Overloads

ClassifiedTextRun(String, String)

Creates a new run of classified text.

ClassifiedTextRun(String, String, ClassifiedTextRunStyle)

Creates a new run of classified text.

ClassifiedTextRun(String, String, ClassifiedTextRunStyle, String)

Creates a new run of classified and marked text.

ClassifiedTextRun(String, String, Action, String, ClassifiedTextRunStyle)

Creates a new run of classified text.

ClassifiedTextRun(String, String)

Creates a new run of classified text.

public:
 ClassifiedTextRun(System::String ^ classificationTypeName, System::String ^ text);
public ClassifiedTextRun (string classificationTypeName, string text);
new Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRun : string * string -> Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRun
Public Sub New (classificationTypeName As String, text As String)

Parameters

classificationTypeName
String

A name indicating a IClassificationType that maps to a format that will be applied to the text.

text
String

The text rendered by this run.

Remarks

Classification types can be platform specific. Only classifications defined in PredefinedClassificationTypeNames are supported cross platform.

Applies to

ClassifiedTextRun(String, String, ClassifiedTextRunStyle)

Creates a new run of classified text.

public:
 ClassifiedTextRun(System::String ^ classificationTypeName, System::String ^ text, Microsoft::VisualStudio::Text::Adornments::ClassifiedTextRunStyle style);
public ClassifiedTextRun (string classificationTypeName, string text, Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRunStyle style);
new Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRun : string * string * Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRunStyle -> Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRun
Public Sub New (classificationTypeName As String, text As String, style As ClassifiedTextRunStyle)

Parameters

classificationTypeName
String

A name indicating a IClassificationType that maps to a format that will be applied to the text.

text
String

The text rendered by this run.

style
ClassifiedTextRunStyle

The style that will be applied to the text.

Remarks

Classification types can be platform specific. Only classifications defined in PredefinedClassificationTypeNames are supported cross platform.

Applies to

ClassifiedTextRun(String, String, ClassifiedTextRunStyle, String)

Creates a new run of classified and marked text.

public:
 ClassifiedTextRun(System::String ^ classificationTypeName, System::String ^ text, Microsoft::VisualStudio::Text::Adornments::ClassifiedTextRunStyle style, System::String ^ markerTagType);
public ClassifiedTextRun (string classificationTypeName, string text, Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRunStyle style, string markerTagType);
new Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRun : string * string * Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRunStyle * string -> Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRun
Public Sub New (classificationTypeName As String, text As String, style As ClassifiedTextRunStyle, markerTagType As String)

Parameters

classificationTypeName
String

A name indicating a IClassificationType that maps to a format that will be applied to the text.

text
String

The text rendered by this run.

style
ClassifiedTextRunStyle

The style that will be applied to the text.

markerTagType
String

A name indicating Type of ITextMarkerTag whose background will be applied to the text.

Remarks

Classification types can be platform specific. Only classifications defined in PredefinedClassificationTypeNames are supported cross platform.

Applies to

ClassifiedTextRun(String, String, Action, String, ClassifiedTextRunStyle)

Creates a new run of classified text.

public ClassifiedTextRun (string classificationTypeName, string text, Action navigationAction, string tooltip = default, Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRunStyle style = Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRunStyle.Plain);
new Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRun : string * string * Action * string * Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRunStyle -> Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRun
Public Sub New (classificationTypeName As String, text As String, navigationAction As Action, Optional tooltip As String = Nothing, Optional style As ClassifiedTextRunStyle = Microsoft.VisualStudio.Text.Adornments.ClassifiedTextRunStyle.Plain)

Parameters

classificationTypeName
String

A name indicating a IClassificationType that maps to a format that will be applied to the text.

text
String

The text rendered by this run.

navigationAction
Action
tooltip
String
style
ClassifiedTextRunStyle

The style that will be applied to the text.

Remarks

Classification types can be platform specific. Only classifications defined in PredefinedClassificationTypeNames are supported cross platform.

Applies to