public bool DeleteSelection()
{
if (this.cursorIndex == this.selectIndex)
{
return false;
}
if (this.cursorIndex < this.selectIndex)
{
this.m_Content.text = this.text.Substring(0, this.cursorIndex) + this.text.Substring(this.selectIndex, this.text.Length - this.selectIndex);
this.selectIndex = this.cursorIndex;
}
else
{
this.m_Content.text = this.text.Substring(0, this.selectIndex) + this.text.Substring(this.cursorIndex, this.text.Length - this.cursorIndex);
this.cursorIndex = this.selectIndex;
}
this.ClearCursorPos();
return true;
}