TextCase Enumeration

Specifies the case of the text to use in the SGBTextBox when using the ChangeCase() method

Namespace: SGBControls.Editors
Assembly: SGBControls

Syntax
public enum TextCase

Members
Member Name Description
Uppercase The text is converted to upper case, i.e. HELLO WORLD
Lowercase The text is converted to lower case i.e. hello world
ProperCase The text is convered to proper case i.e. Hello World



Remarks
Use the members of this enumeration to define the text case to be used when calling the ChangeCase() method of the SGBTextBox.

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 1:22 PM by scottgblood, version 2

Comments

No comments yet.