Compartilhar via


IEditorOperations.Capitalize Method

Converts all the characters in the selection to lowercase, then converts the first character in each word in the selection to uppercase. If the selection is empty, then it makes the next character uppercase.

Namespace:  Microsoft.VisualStudio.Text.Operations
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Function Capitalize As Boolean
bool Capitalize()
bool Capitalize()
abstract Capitalize : unit -> bool
function Capitalize() : boolean

Return Value

Type: Boolean
true if the edit succeeded, otherwise false.

.NET Framework Security

See Also

Reference

IEditorOperations Interface

Microsoft.VisualStudio.Text.Operations Namespace