判断richtextbox选中的是否为图片

 

 

          if (richTextBox1.SelectedRtf.IndexOf(@"{\pict") > -1)
            {
                Text = "Img";
            }
            else
            {
                Text = "Form1";
            }

 

posted @ 2013-12-17 17:11  XE2011  阅读(404)  评论(0)    收藏  举报