StringExtensions.ToTitleCase Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

ToTitleCase(string, bool)

Converts text to title case.

public static string ToTitleCase(this string text, bool onlyFirstLetter = false)

Parameters

text
string

The text to convert.

onlyFirstLetter
bool

Only change first letter of words

Returns

string

The converted text.