Table of Contents

Method ToDisplayString

Namespace
Alternet.Common.TypeScript
Assembly
Alternet.Common.TypeScript.v9.dll

ToDisplayString(SymbolDisplayPart, bool, Color[])

Converts display part into formatted html string.

public static string ToDisplayString(this SymbolDisplayPart part, bool useFormatting, Color[] colors)

Parameters

part SymbolDisplayPart

Display part

useFormatting bool

Boolean value that specifies if html formatting is required.

colors Color[]

Array of colors for highlighting types and reserved words.

Returns

string

Formatted string.

ToDisplayString(IReadOnlyCollection<SymbolDisplayPart>, bool, Color[])

Converts list of display part into formatted html string.

public static string ToDisplayString(this IReadOnlyCollection<SymbolDisplayPart> parts, bool useFormatting, Color[] colors)

Parameters

parts IReadOnlyCollection<SymbolDisplayPart>

List of display parts

useFormatting bool

Boolean value that specifies if html formatting is required.

colors Color[]

Array of colors for highlighting types and reserved words.

Returns

string

Formatted string.