Set NScolor RGB to a nstextfield

I am working with xamarin studio for mac in c# (cocoa app).
I need to set color to nstextfield using RBG .
Please let me know the code in c#.

i have tried out below but always dislay either black or white.
lblclickhere.TextColor = NSColor.FromRgba(201%255f,12%255f,173%255f,1.0f);
lblclickhere.TextColor=NSColor.FromRgba(64, 157, 205, 255);

please suggest.

Best Answer


  • TimothyRisiXMTimothyRisiXM USXamarin Team Xamurai

    I created a bug report to add integer versions of the FromRgba method

  • Great. Thanks . Its done.. :)

Sign In or Register to comment.