Jaa


MetadataFormattingOptionsBuilder Class

Definition

Provides the ability to build the set of formatting options that are used during metadata serialization.

public sealed class MetadataFormattingOptionsBuilder
type MetadataFormattingOptionsBuilder = class
Public NotInheritable Class MetadataFormattingOptionsBuilder
Inheritance
MetadataFormattingOptionsBuilder

Constructors

MetadataFormattingOptionsBuilder(MetadataFormattingOptions)

Creates an instance of the MetadataFormattingOptionsBuilder class that is initialized by the specified options.

MetadataFormattingOptionsBuilder(MetadataSerializationStyle)

Creates an instance of the MetadataFormattingOptionsBuilder class based on the specified style.

Properties

Encoding

Gets the encoding that is used in metadata content serialization.

IndentationMode

Gets the indentation mode that is in metadata content serialization.

IndentationSize

Gets the size of a single indentation level, when spaces are used as indentation in metadata content serialization.

NewLineStyle

Gets the value that is used to indicate the end of a text line in metadata content serialization.

Methods

GetOptions()

Gets an instance of MetadataFormattingOptions initialized with the formatting options that were chosen.

WithEncoding(Encoding)

Sets on the options the encoding that is used in metadata content serialization.

WithNewLineStyle(NewLineStyle)

Sets on the options the indication of the end of a text line in metadata content serialization.

WithSpacesIndentationMode(Int32)

Sets on the options that indentaition is based on Tabs style with the specified length.

WithTabsIndentationMode()

Sets on the options that indentaition is based on Tabs style.

Extension Methods

GetBaseIndentationLevel(MetadataFormattingOptionsBuilder)

Gets the level of the base indentation of the TMDL documents.

GetCasingStyle(MetadataFormattingOptionsBuilder)

Gets the casing style in which keywords are written to the TMDL text.

WithBaseIndentationLevel(MetadataFormattingOptionsBuilder, Int32)

Sets the level of the base indentation of the TMDL documents.

WithCasingStyle(MetadataFormattingOptionsBuilder, TmdlCasingStyle)

Sets the casing style in which keywords are written to the TMDL text.

Applies to