WebExtensionTaskPane.Width
WebExtensionTaskPane.Width property
Gets and sets the default width value for this taskpane instance.
public double Width { get; set; }
Examples
using System;
using Aspose.Cells;
using Aspose.Cells.WebExtensions;
namespace AsposeCellsExamples
{
public class WebExtensionTaskPanePropertyWidthDemo
{
public static void Run()
{
Workbook workbook = new Workbook();
WebExtensionCollection webExtensions = workbook.Worksheets.WebExtensions;
int index = webExtensions.Add();
WebExtension webExt = webExtensions[index];
webExt.Reference.Version = "1.0.6.28";
webExt.Reference.StoreName = @"\\wanlink.us\DFSRoot\APPS\meZocliq\UAT\Excel_Addin\";
webExt.Reference.StoreType = WebExtensionStoreType.FileSystem;
webExt.Properties.Add("Office.AutoShowTaskpaneWithDocument", "true");
WebExtensionTaskPaneCollection taskPanes = workbook.Worksheets.WebExtensionTaskPanes;
int taskPaneIndex = taskPanes.Add();
WebExtensionTaskPane taskPane = taskPanes[taskPaneIndex];
taskPane.WebExtension = webExt;
taskPane.DockState = "right";
taskPane.IsVisible = true;
// Demonstrate Width property usage
taskPane.Width = 350;
workbook.Save("WebExtensionTaskPanePropertyWidthDemo.xlsx");
Console.WriteLine("Workbook saved with task pane width set to: " + taskPane.Width);
}
}
}
See Also
- class WebExtensionTaskPane
- namespace Aspose.Cells.WebExtensions
- assembly Aspose.Cells