Version

BoundsInPixels Property

Gets or sets the pixel bounds of the workbook's MDI child window when CustomView owning these window options is applied.
Syntax
'Declaration
 
Public Property BoundsInPixels As Rect
public Rect BoundsInPixels {get; set;}

Property Value

The pixel bounds of the workbook's MDI child window when CustomView owning these window options is applied.
Exceptions
ExceptionDescription
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.
Remarks

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.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also