public void ClearSelection()
{
if (this.selectedLines != null)
{
for (int i = selectedLines.Count - 1; i >= 0; --i)
{
this.selectedLines[i].SelectionSegment = null;
}
this.selectedLines.Clear();
}
else
{
if (this.startHitHostLine != null)
{
this.startHitHostLine.SelectionSegment = null;
}
}
this.startHitRun = this.endHitRun = null;
this.startHitRunCharIndex = this.endHitRunCharIndex = 0;
}