Method ToDisplayString
- Namespace
- Alternet.Common.TypeScript
- Assembly
- Alternet.Common.TypeScript.v10.dll
ToDisplayString(SymbolDisplayPart, bool, Color[])
Converts display part into formatted html string.
public static string ToDisplayString(this SymbolDisplayPart part, bool useFormatting, Color[] colors)
Parameters
partSymbolDisplayPartDisplay part
useFormattingboolBoolean value that specifies if html formatting is required.
colorsColor[]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
partsIReadOnlyCollection<SymbolDisplayPart>List of display parts
useFormattingboolBoolean value that specifies if html formatting is required.
colorsColor[]Array of colors for highlighting types and reserved words.
Returns
- string
Formatted string.