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





Represents a form which can be used to create, edit and remove named cell ranges from a workbook.

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

 Syntax

C#  Copy Code

public class ManageNamedRangesForm : Window, IComponentConnector

Visual Basic  Copy Code

Public Class ManageNamedRangesForm
    Inherits Window
    Implements IComponentConnector

 Remarks

This form can be used to add, edit, and remove named ranges from a workbook. To use the form, create an instance of the ManageNamedRangesForm class, by providing the related workbook, and call the ShowDialog method. To apply the changes made through the form, call the Apply method. The following image shows the form:

 Example

The code below demonstrates how to display the form for an existing range of cells.

C#  Copy Code

var form = new ManageNamedRangesForm(workbook, cellRange);
if (form.ShowDialog(this) == true)
{
    using (workbook.StartCompositeOperation())
        form.Apply(workbook);
}

Visual Basic  Copy Code

Dim form = New ManageNamedRangesForm(workbook, cellRange)
If form.ShowDialog(Me) = True Then

    Using workbook.StartCompositeOperation()
        form.Apply(workbook)
    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.ManageNamedRangesForm

 See Also

ManageNamedRangesForm Members
MindFusion.Spreadsheet.Wpf.StandardForms Namespace