Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Description

Excerpt

Returns whether this worksheet is selected.

Signature
C#
C#
 public boolean IsSelected{ get; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public ReadOnly Property IsSelected() As Boolean
{signature}
{remarks}
Multiple worksheets can be selected. When opened in Excel, one of the selected worksheets will be visible, and the tab for each selected worksheet will be highlighted.  This allows you to manipulate multiple worksheets simultaneously.  In ExcelWriter, IsSelected will return true for every selected worksheet, but no other behavior is changed by having multiple worksheet selected.

To select a single worksheet, use the [Worksheet.Select()] method.  To select multiple worksheets, use the [
Remarks

Multiple worksheets can be selected. When opened in Excel, one of the selected worksheets will be visible, and the tab for each selected worksheet will be highlighted. This allows you to manipulate multiple worksheets simultaneously. In ExcelWriter, IsSelected will return true for every selected worksheet, but no other behavior is changed by having multiple worksheet selected.

To select a single worksheet, use the Worksheet.Select() method. To select multiple worksheets, use the Worksheets.Select(Object())

]

method.

{remarks} {example}{code:csharp|title=C#}

Example
Code Block
csharp
csharp
titleC#

bool selected = ws.IsSelected;
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}

Dim selected As Boolean = ws.IsSelected
{code} {example}