Jump to content
Software FX Community

ClearDataFlag_ColorsAndPatterns doesn't reset Backcolor


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.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...