property GradientCount: Integer; //read only
The number of color stops in the gradient. Check this to avoid accessing a GradientEntry outside its bounds