有关设置图表区格式的详细信息,请参阅 ChartArea 对象。 示例 使用PlotArea 属性可返回一个 PlotArea 对象。 下例激活名为“Chart1”的图表工作表,给活动图表的图表区设置虚线边框,给绘图区设置点线边框。 VB 复制 Charts("Chart1").Activate With ActiveChart .ChartArea.Border.LineStyle = xlDash .PlotArea...
Excel 程序集: Microsoft.Office.Interop.Excel.dll 代表图表的绘图区。 该区域为绘制图表数据的区域。 C# 复制 [System.Runtime.InteropServices.Guid("000208CB-0000-0000-C000-000000000046")] [System.Runtime.InteropServices.InterfaceType(2)] public interface PlotArea 属性 GuidAttribute InterfaceType...
表達 代表PlotArea 物件的 變數。 註解 如果這個物件是在 Microsoft Excel 中建立的,則此屬性會傳回字串 XCEL,它相當於十六進位數字 5843454C。 Creator 屬性是針對 Macintosh 平台上的 Microsoft Excel 所設計的,在 Macintosh 平台上,每一個應用程式都有四個字元的建立者代碼。 例如,Microsoft Excel 的建立者代碼...
This example draws a dotted rectangle around the inside of the plot area on Chart1.VB Kopiraj With Charts("chart1") Set pa = .PlotArea With .Shapes.AddShape(msoShapeRectangle, _ pa.InsideLeft, pa.InsideTop, _ pa.InsideWidth, pa.InsideHeight) .Fill.Transparency = 1 .Line.DashStyle =...
) 虽然原始Excel.ChartPlotAreaFormat对象是 API 对象,toJSON但该方法返回一个纯 JavaScript 对象, (类型为 Excel.Interfaces.ChartPlotAreaFormatData) ,其中包含从原始对象加载的任何子属性的浅表副本。属性详细信息border 指定图表绘图区的边框属性。 TypeScript 复制 readonly border: Excel.ChartBorder; 属性值...
Chart.PlotArea 属性 (Excel) 项目 2023/04/07 5 个参与者 反馈 本文内容 语法 示例 返回一个PlotArea对象,该对象代表图表的绘图区。 此为只读属性。 语法 表达式。PlotArea expression:一个表示Chart对象的变量。 示例 本示例将 Chart1 绘图区的内部颜色设置为蓝绿色。
Excel automatically scales the plot area of a chart when you add elements in the graph, for example, captions, titles, and data labels. When we manually change the dimensions of the chart plot area, excel no longer automatically sizes the chart. Is it possible to readjust the graph so that...
Excel automatically scales the plot area of a chart when you add elements in the graph, for example, captions, titles, and data labels. When we manually change the dimensions of the chart plot area, excel no longer automatically sizes the chart. Is it possible to readjust the graph so that...
$CHART_SERIES_IN_COLUMNS); // Get the previously added chart $xlsChartSheet = $workbook->easy_getSheetAt(1); $xlsChart = $xlsChartSheet->easy_getExcelChart(); // Set chart type $xlsChart->easy_setChartType($CHART_CHART_TYPE_CYLINDER_COLUMN); // Format chart area $xlsChartArea = ...
Excel Assembly: Microsoft.Office.Tools.Excel.dll Gets a PlotArea object that represents the plot area of a chart. C# 复制 public Microsoft.Office.Interop.Excel.PlotArea PlotArea { get; } Property Value PlotArea A PlotArea object that represents the plot area of a chart. Examples The ...