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)); } }
Many thanks! This works :-)
How did you use it for that unit of measure (I never used)? Like CQL or by conditional iteration?
you mean this?corelApp.ActiveDocument.StyleSheet.FindStyle("~graphic~").Outline.Width = corelApp.ActiveDocument.ToUnits(762, corel.cdrUnit.cdrTenthMicron);
So, not CQL... I do not know what abbreviation to be used for 'cdrTenthMicron' like unit of measure in CQL.
Ahh. OK i got this from Eskimo a long time ago in this forumcommunity.coreldraw.com/.../303672