how to set excel chart legend properties?
How to set the legend to overlay on th开发者_如何转开发e 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.
精彩评论