Flood.GUI.Controls.TextBox.DeleteText C# (CSharp) Method

DeleteText() public method

Deletes text.
public DeleteText ( int startPos, int length ) : void
startPos int Starting cursor position.
length int Length in characters.
return void
        public virtual void DeleteText(int startPos, int length)
        {
            String str = Text;
            str = str.Remove(startPos, length);
            SetText(str);

            if (m_CursorPos > startPos)
            {
                CursorPos = m_CursorPos - length;
            }

            CursorEnd = m_CursorPos;
        }