Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
Description

Excerpt

Returns whether this worksheet is selected.


{remarks}
{example}{code:csharp|title=C#}
bool selected = ws.IsSelected;
{code}
{code:vb.net
|title=vb.net
}
Dim selected As Boolean = ws.IsSelected{code}

{example}
Signature
C#C#
Wiki Markup
{description}
{excerpt}Returns whether this worksheet is selected.{excerpt}
{signature:C#}
 public boolean IsSelected{ get; }
Signature
{signature}{signature:vb.net
vb.net
}
Public ReadOnly Property IsSelected() As Boolean
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
{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 [Worksheets.Select(Object())] method.
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle