Prompts the user to insert worksheets within a workbook.
Namespace: MindFusion.Spreadsheet.Wpf.StandardForms
Assembly: MindFusion.Spreadsheet.Wpf.StandardForms
C# Copy Code |
---|
public class InsertWorksheetForm : Window, INotifyPropertyChanged, IComponentConnector |
Visual Basic Copy Code |
---|
Public Class InsertWorksheetForm |
This form can be used to prompt the user to insert new sheets in a workbook. To use the form, create an instance of the InsertWorksheetForm class by providing the related workbook and call the ShowDialog method. The user's choice can be obtained from the Position, Index, NumberOfSheets, and SheetName properties. The following image shows the form:
The code below demonstrates how to use the form to insert worksheets in an existing workbook. The activeSheet variable identifies the Worksheet that is currently active in the view.
C# Copy Code |
---|
var form = new InsertWorksheetForm(workbook); |
Visual Basic Copy Code |
---|
Dim form = New InsertWorksheetForm(workbook) |
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
System.Windows.Window
MindFusion.Spreadsheet.Wpf.StandardForms.InsertWorksheetForm