How to add vertical, horizontal or linear gradient to an XPS file is a question answered by Aspose.Page API solution. Learn the functionality for .NET...rectangle with horizontal gradient fill in XPS document. 2 3 // Create...0f, 1f, 20f, 70f); 19 path. Fill = doc. CreateLinearGradient...