Version

GetSheetDisplayOptions Method

Gets the display options associated with the specified sheet.
Syntax
public DisplayOptionsBase GetSheetDisplayOptions( 
   Sheet sheet,
   bool createIfNull
)

Parameters

sheet
The sheet whose associated display options are to be retrieved.
createIfNull
True to create the display options if it has not yet been allocated. The options will be initialized based on the current state of the Sheet. Note the options should only have been null if there were no options for the Sheet when the Workbook was loaded.

Return Value

Null if the sheet does not belong to the workbook associated with this custom view; otherwise, the display options associated with the worksheet.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionsheet is null.
Remarks

Setting properties on the returned DisplayOptionsBase instance will not change the actual display of the sheet. After setting properties, the Apply method of the CustomView will apply them to the sheet.

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