Skip to content

MessageFormatterOptions Class ​

Definition ​

Options for the MessageFormatter.

c#
public sealed class MessageFormatterOptions

View source

Constructors ​

NameDescription
MessageFormatterOptions()

Properties ​

NameDescription
DefaultMessageFormatterOptions with PrefixWithSourcePosition = false and HighlightSourcePosition = false.
HighlightOnlyMessageFormatterOptions with PrefixWithSourcePosition = false and HighlightSourcePosition = true.
HighlightSourcePositionWhether to suffix the message with a highlight of the message in its line.
PrefixAndHighlightMessageFormatterOptions with PrefixWithSourcePosition = true and HighlightSourcePosition = true.
PrefixOnlyMessageFormatterOptions with PrefixWithSourcePosition = true and HighlightSourcePosition = false.
PrefixWithSourcePositionWhether to prefix the message with the source position or not.