Jump to content
Software FX Community

ClearDataFlag_ColorsAndPatterns doesn't reset Backcolor


Neoteny

Recommended Posts

Actually ClearDataFlag_ColorsAndPatterns is a constant we inherited from previous versions where the colors and patterns were kept on a separate array so using this flag meant you wanted to free that memory. ChartFX 6.2 (both .NET and COM) ignore this flag so the reset of the other colors is probably being caused by the use of other flags (e.g. ClearDataFlag_PerSeriesAttributes).

To reset the back color - I am guessing you may also want to reset the inside color as this is also modifiable by the user - you would have to this

Chart1.BackColor = Chart1.ColorFromArgb(0, 0, 0, 0)

Chart1.InsideColor = Chart1.ColorFromArgb(0, 0, 0, 0)

Please note that you will need an updated version for this code to work, internally we we know when a color is set to empty but before there was no way for you to create an "Empty" color. Newer builds will assume an empty color when you use ColorFromArgb with all parameters set to 0.

JuanC

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...