---
Product: Aspose.Cells
Platform: cpp
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/cpp/workbookviewmodel
---

# WorkbookViewModel

## Overview

`WorkbookViewModel` is a class in Aspose.Cells FOSS for C++.

Represents workbook view model.

This class declares 26 methods for WorkbookViewModel objects in C++ programs.
Available methods include: `CopyFrom`, `GetAutoFilterDateGrouping`, `GetFirstSheet`, `GetMinimized`, `GetShowHorizontalScroll`, `GetShowSheetTabs`, `GetShowVerticalScroll`, `GetTabRatio`, `GetVisibility`, `GetWindowHeight`, `GetWindowWidth`, `GetXWindow`, and 14 additional methods.
Public members are accessible to any C++ application after installing the Aspose.Cells FOSS for C++ package.

## Methods

| Signature | Description |
|-----------|-------------|
| `GetXWindow()` → `std::optional<int>` | Gets or sets the x window. |
| `SetXWindow(value: std::optional<int>)` | Sets the x window value. |
| `GetYWindow()` → `std::optional<int>` | Gets or sets the y window. |
| `SetYWindow(value: std::optional<int>)` | Sets the y window value. |
| `GetWindowWidth()` → `std::optional<int>` | Gets or sets the window width. |
| `SetWindowWidth(value: std::optional<int>)` | Sets the window width value. |
| `GetWindowHeight()` → `std::optional<int>` | Gets or sets the window height. |
| `SetWindowHeight(value: std::optional<int>)` | Sets the window height value. |
| `GetFirstSheet()` → `std::optional<int>` | Gets or sets the first sheet. |
| `SetFirstSheet(value: std::optional<int>)` | Sets the first sheet value. |
| `GetShowHorizontalScroll()` → `std::optional<bool>` | Gets or sets a value indicating whether show horizontal scroll. |
| `SetShowHorizontalScroll(value: std::optional<bool>)` | Sets the show horizontal scroll value. |
| `GetShowVerticalScroll()` → `std::optional<bool>` | Gets or sets a value indicating whether show vertical scroll. |
| `SetShowVerticalScroll(value: std::optional<bool>)` | Sets the show vertical scroll value. |
| `GetShowSheetTabs()` → `std::optional<bool>` | Gets or sets a value indicating whether show sheet tabs. |
| `SetShowSheetTabs(value: std::optional<bool>)` | Sets the show sheet tabs value. |
| `GetTabRatio()` → `std::optional<int>` | Gets or sets the tab ratio. |
| `SetTabRatio(value: std::optional<int>)` | Sets the tab ratio value. |
| `GetVisibility()` → `std::string` | Gets or sets the visibility. |
| `SetVisibility(value: std::string)` | Sets the visibility value. |
| `GetMinimized()` → `bool` | Gets or sets a value indicating whether minimized. |
| `SetMinimized(value: bool)` | Sets the minimized value. |
| `GetAutoFilterDateGrouping()` → `bool` | Gets or sets a value indicating whether auto filter date grouping. |
| `SetAutoFilterDateGrouping(value: bool)` | Sets the auto filter date grouping value. |
| `CopyFrom(source: WorkbookViewModel)` | Copies values from the specified source. The source. |
| `HasStoredState(activeSheetIndex: int)` → `bool` | Performs has stored state. The active sheet index. true if the condition is met; otherwise, false. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)