How to set the legend to overlay on the right of the excel chart using c#?
Refer to MS excel it has a checkbox "show the legend without overlapping the chart" in legend properties window.
Thanks for your help.
How to set the legend to overlay on the right of the excel chart using c#?
Refer to MS excel it has a checkbox "show the legend without overlapping the chart" in legend properties window.
Thanks for your help.
If you're using the excel automation engine (via the COM object and .NET interoperability layer), then the Chart object contains a Legend object, which has a Position property and an IncludeInLayout
boolean property. It may be what you're looking for.