Skip to content

Commit a335d5f

Browse files
committed
Create and Edit Charts
1 parent 6f6c0c3 commit a335d5f

File tree

1 file changed

+3
-0
lines changed
  • Create and Edit Charts/Legend/.NET/Legend/Legend

1 file changed

+3
-0
lines changed

Create and Edit Charts/Legend/.NET/Legend/Legend/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public static void Main(string[] args)
3535
//Set the color
3636
chart.Legend.TextArea.Color = ExcelKnownColors.Pink;
3737

38+
//Set the background color
39+
chart.Legend.FrameFormat.Fill.ForeColorIndex = ExcelKnownColors.Yellow;
40+
3841
//Set the font
3942
chart.Legend.TextArea.Bold = true;
4043
chart.Legend.TextArea.FontName = "Times New Roman";

0 commit comments

Comments
 (0)