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
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: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also