Welcome to the Xceed Community | Help
Community Search  

How to change a bubble color after it has been added to a BubbleSeries?

Sort Posts: Previous Next
  •  10-07-2008, 1:00 AM Post no. 15927

    How to change a bubble color after it has been added to a BubbleSeries?

    We can contol a bubble color by setting FillEffect when adding a new buble to bubbleSeries. Is there a way to change a bubble's color after it has been added to a bubbleSeries?

    Thank you a lot,

     

  •  10-07-2008, 2:24 PM Post no. 15953 in reply to 15927

    Re: How to change a bubble color after it has been added to a BubbleSeries?

    Yes you can do this by using the FillEffects collection on the bubble series :

    e.g. :    ( ( FillEffect )bubble.Appearance.FillEffects[ 1 ] ).SetSolidColor( Color.DeepSkyBlue );

    Note that this collection is filled only if you provide a FillEffect when adding a new DataPoint.

    e.g. :   bubble.AddBubble( 5, 1, 5.0f, "some label", new FillEffect( Color.Beige ) );

    If you do not, it will be empty, so that you will need to add FillEffect to the collection if you want to change the color of a bubble.

    e.g. :    bubble.Appearance.FillEffects.Add( new FillEffect( Color.DeepSkyBlue ) );

    You will need to do this for all the DataPoints.


    André
    Software Developer and Tech Support
    Xceed Software Inc.
  •  10-07-2008, 6:12 PM Post no. 15959 in reply to 15953

    Re: How to change a bubble color after it has been added to a BubbleSeries?

    It works! Thank you very much for quick reply!
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.