property GradientCount: Integer; //read only

Description

The number of color stops in the gradient. Check this to avoid accessing a GradientEntry outside its bounds