Gets an IFillFormat interface that contains fill formatting properties for the specified shape.
[Visual Basic] Property ReadOnly Fill As IFillFormat [C#] IFillFormat Fill { get; } [C++] __property IFillFormat* get_Fill(); [JScript] function get Fill() : IFillFormat
This example creates new comment with a green background.
[C#]
IWorksheet sheet = book.Worksheets[1];
IComment comment = sheet.Cells[5,5].AddComment("comment text");
comment.Shape.Fill.Visible = true;
comment.Shape.Fill.Solid();
comment.Shape.Fill.ForeColor.RGB = System.Drawing.Color.FromArgb(0x00E000);
[Visual Basic]
Dim sheet As IWorksheet = book.Worksheets(1)
Dim comment As IComment = sheet.Cells(5,5).AddComment("comment text")
comment.Shape.Fill.Visible = True
comment.Shape.Fill.Solid()
comment.Shape.Fill.ForeColor.RGB = System.Drawing.Color.FromArgb(&H00E000)
[C++]
IWorksheet* sheet = book->Worksheets->Item[1];
IComment* comment = sheet->Cells->Item[5,5]->AddComment(S"comment text");
comment->Shape->Fill->Visible = true;
comment->Shape->Fill->Solid();
comment->Shape->Fill->ForeColor->RGB = System::Drawing::Color::FromArgb(0x00E000);
IShape Interface | NativeExcel Namespace