0

Can anybody tell me how to set the background color of a compartmentshape field programmaticaly? I couldn't find anything to that.

Thx Manuel

4
  • Have a look at the CompartmentDescription class; it has a CompartmentFillColor property: msdn.microsoft.com/de-de/library/vstudio/…
    – Matze
    Apr 9, 2014 at 7:57
  • Hi Matze! Thx for the tip, but this only allows to set the fill color for a whole compartment. I would like to do that on an item in a compartment.
    – Maniga
    Apr 9, 2014 at 12:55
  • If the field is represented by a ShapeElement maybe the BackgroundBrushId property might be of interest: msdn.microsoft.com/de-de/library/vstudio/…
    – Matze
    Apr 9, 2014 at 15:39
  • No, also not. I have seen this property, but it is a readonly property. I think there is no way to change the background color easily.
    – Maniga
    Apr 9, 2014 at 16:46

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.