'Declaration Public Property BoundsInPixels As System.Drawing.Rectangle
public System.Drawing.Rectangle BoundsInPixels {get; set;}
Exception | Description |
---|---|
System.ArgumentException | The left or top of the value assigned is outside the bounds of -32768 and 32767. |
System.ArgumentException | The width or height of the value assigned is outside the bounds of 0 and 65535. |
Note: This property will have no affect on the workbook if Maximized is True. However, in this case, the value of this property will still be saved with the workbook.
Note: This setting cannot be saved with a Workbook in the Excel file. It can only be saved with a CustomView. Therefore, there is no corresponding property in WorkbookWindowOptions and calling CustomView.Apply on the associated CustomView will not apply this property. Only by applying the custom view through the Microsoft Excel user interface will the setting on this property be applied.
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
View on GitHub