MindFusion.Wpf Pack Programmer's Guide
WorksheetRenameForm Class
Remarks See Also
 





Represents a form that can be used specify a name for a worksheet.

Namespace: MindFusion.Spreadsheet.Wpf.StandardForms
Assembly: MindFusion.Spreadsheet.Wpf.StandardForms

 Syntax

C#  Copy Code

public class WorksheetRenameForm : Window, INotifyPropertyChanged, IComponentConnector

Visual Basic  Copy Code

Public Class WorksheetRenameForm
    Inherits Window
    Implements INotifyPropertyChanged, IComponentConnector

 Remarks

This form can be used to prompt the user for the name of a worksheet. To use the form, create an instance of the WorksheetRenameForm class, providing the initial name to display, and call the ShowDialog method. The user's choice can be obtained from the SheetName property. The following image shows the form:

 Example

The code below demonstrates how to use the form to edit the name of an existing worksheet.

C#  Copy Code

var form = new WorksheetRenameForm(worksheet.Name);
if (form.ShowDialog(this) == true)
{
    using (workbook.StartChangeOperation(worksheet))
        worksheet.Name = form.WorksheetName;
}

Visual Basic  Copy Code

Dim form = New WorksheetRenameForm(worksheet.Name)
If form.ShowDialog(Me) = True Then

    Using workbook.StartChangeOperation(worksheet)
        worksheet.Name = form.WorksheetName
    End Using

End If

 Inheritance Hierarchy

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.WorksheetRenameForm

 See Also

WorksheetRenameForm Members
MindFusion.Spreadsheet.Wpf.StandardForms Namespace