ShapeFillColor Property |
Namespace: Aspose.Words.Drawing
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");