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)); } }
you cannot compare objects with Color-type this way. See methods of Color-class
You can believe me, I have read through the color class for many hours and would not ask for help here if I have not found a solution. So the answer is not necessarily helpful. I need an example here.