Defines a fill for a shape.
[Visual Basic]Public ReadOnly Property Fill As
Fill [C#]public
Fill Fill {get;}
Example
Demonstrates how to create shapes with fill.
[C#]
DocumentBuilder builder = new DocumentBuilder();
builder.Write("Some text under the shape.");
// Create a red balloon, semitransparent.
// The shape is floating and its coordinates are (0,0) by default, relative to the current paragraph.
Shape shape = new Shape(builder.Document, ShapeType.Balloon);
shape.FillColor = Color.Red;
shape.Fill.Opacity = 0.3;
builder.InsertNode(shape);
builder.Document.Save(MyDir + "Shape.Fill Out.doc");[Visual Basic]
Dim builder As DocumentBuilder = New DocumentBuilder()
builder.Write("Some text under the shape.")
' Create a red balloon, semitransparent.
' The shape is floating and its coordinates are (0,0) by default, relative to the current paragraph.
Dim shape As Shape = New Shape(builder.Document, ShapeType.Balloon)
shape.FillColor = Color.Red
shape.Fill.Opacity = 0.3
builder.InsertNode(shape)
builder.Document.Save(MyDir & "Shape.Fill Out.doc")See Also
Shape Class | Aspose.Words.Drawing Namespace