We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Is GradientFormat a clone?

Hello,

  • Does FillFormatEx.getGradientFormat() return a clone of the GradientFormatEx?
    • Can I set the gradient format for my FillFormatEx object by setting the attribute values of the GradientFormatEx that is gotten?
Thanks,

Peter

Hi Peter,

I regret to share with you that you can not set the GradientFormatEx object to a shape directly. You need to get values of GradientFormatEx’s object and fill the shape with its values. Please read this documentation link to fill shapes with
gradient. Let me know, If you have any further queries.