Skip to content

M_Ekstrand_Text_StringOperations_ToTitleCase

Fred Ekstrand edited this page Aug 4, 2020 · 1 revision

StringOperations.ToTitleCase Method

Converts the specified string to titlecase

Namespace: Ekstrand.Text
Assembly: StringOperations (in StringOperations.dll) Version: 1.0.0.3 (1.0.0.3)

Syntax

C#

public static string ToTitleCase(
	this string title
)

VB

<ExtensionAttribute>
Public Shared Function ToTitleCase ( 
	title As String
) As String

C++

public:
[ExtensionAttribute]
static String^ ToTitleCase(
	String^ title
)

F#

[<ExtensionAttribute>]
static member ToTitleCase : 
        title : string -> string 

Parameters

 

title
Type: System.String
String to be converted to titlecase

Return Value

Type: String
Returns a new string converted to titlecase

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

StringOperations Class
Ekstrand.Text Namespace

Clone this wiki locally