Defines the brush color that fills the closed path of the shape.
[Visual Basic]Public Property FillColor As
Color Remarks
This is a shortcut to the Color property.
The default value is White.
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