WorkbookSettings.WindowTopInch
WorkbookSettings.WindowTopInch property
The distance from the top edge of the client area to the top edge of the window, in unit of inch.
public double WindowTopInch { get; set; }
Examples
using System;
using Aspose.Cells;
namespace AsposeCellsExamples
{
public class WorkbookSettingsPropertyWindowTopInchDemo
{
public static void Run()
{
// Create a new workbook
Workbook workbook = new Workbook();
// Access the WorkbookSettings
WorkbookSettings settings = workbook.Settings;
// Set WindowTopInch property to position the window 2 inches from top
settings.WindowTopInch = 2.0;
// Verify the setting by printing it
Console.WriteLine("Window top position (inches): " + settings.WindowTopInch);
// Save the workbook
workbook.Save("WindowTopInchDemo.xlsx");
}
}
}
See Also
- class WorkbookSettings
- namespace Aspose.Cells
- assembly Aspose.Cells