Discover the GradientStopCollection Count property, which provides the total number of items, enhancing your data management and UI design efficiency.... Document doc = new Document (); DocumentBuilder...gradientStops . RemoveAt ( 1 ); // And insert new gradient stop at the same...