Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Mon Sep 24, 2018 8:37 pm

Hello,

I hope someone can help me :lol:

How can i format a shape rectangle with a two color gradient ?

Here is the code of my shape :

Code: Select all
Dim oDoc As New Document()
Dim section1 As Section = oDoc.AddSection()
Dim paraShapeRectangle As Paragraph = section1.AddParagraph()
Dim shapeRectangle as ShapeObject = paraShapeRectangle.AppendShape(500, 300, ShapeType.Rectangle)


This image show the format i want for my shape :

Image

There is another way to create shape ?

Thank for advance

David

dRatz
 
Posts: 7
Joined: Fri Sep 21, 2018 8:41 am

Tue Sep 25, 2018 7:56 am

Hello,

Thanks for your inquiry.
Sorry our Spire.Doc doesn't support filling two color gradients to a shape, it only supports filling one color to a shape by shape.FillColor = Color.Red, and sorry Spire.Doc doesn't have other way to create shape. If you have other question, welcome to write back.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.Doc