ShapeFill Property
Defines a fill for a shape.

Namespace: Aspose.Words.Drawing
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.12
Syntax
public Fill Fill { get; }

Property Value

Type: Fill
Examples
Demonstrates how to create shapes with fill.
DocumentBuilder builder = new DocumentBuilder();

builder.Writeln();
builder.Writeln();
builder.Writeln();
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;
shape.Width = 100;
shape.Height = 100;
shape.Top = -100;
builder.InsertNode(shape);

builder.Document.Save(ArtifactsDir + "Shape.Fill.doc");
See Also