イベントRichTextBox
を使用してテキストの色を判断する方法はありますか? マウスが移動するすべての場所に小さな選択バーが追加mousemove
されるため、使用を避けたいと思います。Richtextbox.Select
private void rtbComputerstatus_MouseMove(object sender, MouseEventArgs e)
{
int c = rtbComputerstatus.GetCharIndexFromPosition(new Point(e.X, e.Y));
rtbComputerstatus.Select(c, 1);
if (rtbComputerstatus.SelectionColor == Color.Blue)
rtbComputerstatus.Cursor = Cursors.Hand;
else
rtbComputerstatus.Cursor = Cursors.Default;
}