Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

261651- Add Offsets to the Chart Area and Plot Area in Excel Charts #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.IO;
using Syncfusion.Drawing;
using Syncfusion.XlsIO;
using Syncfusion.XlsIO.Implementation.Shapes;

namespace Picture_Fill
{
Expand Down Expand Up @@ -30,9 +31,17 @@ static void Main(string[] args)
//Set picture fill to chart area
chart.ChartArea.Fill.UserPicture(image1, "Image");

//Setting offset to chart area fill picture
Rectangle chartarea = Rectangle.FromLTRB(5000, 6000, 7000, 8000);
(chart.ChartArea.Fill as ShapeFillImpl).FillRect = chartarea;

//Set picture fill to plot area
chart.PlotArea.Fill.UserPicture(image1, "Image");

//Setting offset to plot area fill picture
Rectangle plotarea = Rectangle.FromLTRB(5000, 6000, 7000, 8000);
(chart.PlotArea.Fill as ShapeFillImpl).FillRect = plotarea;

//Set picture fill to series
serie1.SerieFormat.Fill.UserPicture(image2, "Image");
serie2.SerieFormat.Fill.UserPicture(image2, "Image");
Expand Down
Loading