Can I Specify the ForeColor Property in a Screen Customization?
I have an epiShape that I would like to have its text color be yellow. Here is the code I added:
this.eshChangeOrder.Appearance.ForeColor = Color.Yellow;
Unfortunately, when I try to complile, I get the error " Error: CS0103 - line 122 (2201) - The name ‘Color’ does not exist in the current context".
Any thoughts if this is possible or not?
NateS
(Nate Schoonover)
2
I have used this to change color before:
System.Drawing.Color.Red;
klincecum
(Kevin Lincecum)
3
I’m pretty sure System.Drawing is already referenced, but if it’s not, you will need to add it.
If it is there, Nate’s suggestion will get you there.
If you want to shorten it, add:
using System.Drawing;
and then you can use
1 Like
This was a quick one guys. Thanks for helping me out!
1 Like