Table of Contents

LanguageSpecificText Class

Definition

This class is used to define language specific text used by a presentation style

public sealed class LanguageSpecificText
Inheritance
LanguageSpecificText

Remarks

These elements are translated to script calls by the Language Specific Text build component in HTML-based presentation styles. In those that don't support script such as Open XML, the build task that generates the final content replaces them with the neutral text equivalent or removes them.

Constructors

LanguageSpecificText(bool, IEnumerable<(string LanguageId, string Keyword)>)

Constructor

Fields

ArrayOfOpening

This represents the "array of" opening text. Closing text is rendered dynamically due to the need to show rank if defined.

CPlusPlus

This represents the C++ language identifier

CSharp

This represents the C# language identifier

FSharp

This represents the F# language identifier

LanguageSpecificTextStyleName

The style name to use for language specific text. This is used by the build component.

NameSeparator

This represents the common name separators

Neutral

This represents the neutral language identifier

ReferenceTo

This represents the closing text for "reference to" characters

TypeSpecializationClosing

This represents the common generic type specialization closing characters (<T>)

TypeSpecializationOpening

This represents the common generic type specialization opening characters (<T>)

VisualBasic

This represents the Visual Basic language identifier

Properties

ApplyKeywordStyle

This read-only property returns true if the KeywordStyleName will be applied to the rendered language-specific text or false if not.

KeywordStyleName

This is used to get or set the keyword style name

Text

This read-only property returns an enumerable list of the language specific text

Methods

Render()

Render the language specific text

RenderKeyword(string)

This can be used to render an unrecognized language keyword with an appropriate style