Class PlaceholderOptions
How placeholders are recognized and how their values are formatted.
public sealed class PlaceholderOptions
- Inheritance
-
PlaceholderOptions
- Inherited Members
Constructors
Properties
- Culture
Gets or sets the culture used to format values that implement IFormattable, or null for InvariantCulture. Never the ambient culture — that would make output depend on the machine.
- MatchCase
Gets or sets whether a name is matched to a key case-sensitively. Default false, because a template author and a data source rarely agree on casing. Matching is ordinal either way, never culture-sensitive: a document is not filled differently because the machine running the fill is Turkish.
- Prefix
Gets or sets the text that opens a placeholder. Default
"{{".
- Replace
Gets or sets the replacement options, or null for the defaults. Set Formatting to give every substituted value explicit formatting rather than inheriting the placeholder's.
- Suffix
Gets or sets the text that closes a placeholder. Default
"}}".
- TrimNames
Gets or sets whether surrounding whitespace is trimmed off a placeholder's name, so
{{ Name }}and{{Name}}name the same value. Default true.
- Unresolved
Gets or sets what happens to a placeholder the data has no key for. Default Leave.