SGBTextBox.ChangeCase()

Changes the case of the string stored in the text property.

Syntax
c#
public object ChangeCase(TextCase caseType)
{ 
}

Parameters
Parameter Name Type Description
caseType SGBControls.Editors.TextCase | Specifies the type of case to use when converting case in this control.


Return Value
void

Remarks
The ChangeCase() method changes the case of the text contained in the SGBTextBox to the case specified by the caseType parameter. For a list of available case types see the TextCase topic.

Examples

c#
// Change the text to uppercase in an SGBTextBox
public void ChangeToUpperCase(SGBTextBox textBox)
{
    if(control != null)
    {
          textBox.ChangeCase(TextCase.Uppercase);
    }
}

vb.net
' Change the text to uppercase in an SGBTextBox
Public Sub ChangeToUpperCase(ByVal control__1 As SGBTextBox) 
    If control__1 IsNot Nothing Then 
        control_1.ChangeCase(TextCase.Uppercase)
    End If 
End Sub 

Known Issues
none

Last edited Mar 30, 2010 at 12:11 PM by scottgblood, version 2

Comments

No comments yet.