# CaseStyleOption
# Type: Key-value pairs
# Fields
# Field: TreatCharsAsSpace
The list of chars to be treated as space.
Note: By default even without this option set, the style supporting this option (like TitleCaseEnAu) will have a default TreatCharsAsSpace list: "-_+,./".
If this attribute is specified, the default list will be replaced by the supplied list.
No options:
"CaseStyle": {
"Style": "UppercaseFirstWord"
}
Before: ^series x
After: ^series x
With options:
"CaseStyle": {
"Style": "UppercaseFirstWord",
"Options": [
"TreatCharsAsSpace": "^"
]
}
Before: ^series x
After: ^Series x
# Field: TreatNumbersAsSpace
This bool value decides if number is treated as space.
By default it is false.
No option:
"CaseStyle": {
"Style": "UppercaseFirstWord"
}
Before: 3series x
After: 3series x
After setting:
"CaseStyle": {
"Style": "UppercaseFirstWord",
"Options": [
"TreatCharsAsSpace": "^"
]
}
Before: 3series x
After: 3Series x
# Field: Culture
# Type: Enum
# Value Options:
Same as CultureInfo
# Description:
Same as CultureInfo
# Field: Exceptions
# Type: string[]
# Description:
The list of words to be skipped for case formatting.
By default, without this option set, the style supporting this option (like TitleCaseEnAu) will have a default exception list:
toisasby
If specify this attribute, the default list will be REPLACED by the supplied list.
Example:
Without Exceptions specified at CaseStyle: TitleCaseEnAu:
"CaseStyle": {
"Style": "TitleCaseEnAu",
}
Input:
30 books sold at bookshop
Output:
30 Books Sold At Bookshop
The output at changes to uppercase.
With Exceptions specified:
"CaseStyle": {
"Style": "TitleCaseEnAu",
"Options": [
"Exception": ["at"]
]
}
Input:
30 books sold at bookshop
Output:
30 Books Sold at Bookshop
The output at remains lowercase.
