Detect color and line thickness

How i can outlines in RGB(255,0,0) select on if statement?

In my example works the selection of 0.0762, but colors dont work.

1
2
3
4
5
6
7
            foreach (corel.Shape sh in sr)
            {
                if ((sh.Outline.Width != 0.0762)&&(sh.Outline.Color != corelApp.Application.CreateRGBColor(255,0,0)))
                {
                    sr.Remove(sr.IndexOf(sh));
                }
            }