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





Represents a form that can be used to define row height or column width within a worksheet.

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

 Syntax

C#  Copy Code

public class HeaderSizeForm : Window, IComponentConnector

Visual Basic  Copy Code

Public Class HeaderSizeForm
    Inherits Window
    Implements IComponentConnector

 Remarks

This form can be used to prompt the user for the size of the column and row headers in a worksheet. To use the form, create an instance of the HeaderSizeForm class, optionally providing the title and label texts, and call the ShowDialog method. The user's choice can be obtained from the HeaderSize property. The following image shows the form:

 Example

The code below demonstrates how to use the form to resize a row in an existing worksheet.

C#  Copy Code

var form = new HeaderSizeForm("Row Height", "Height", row.Height);
if (form.ShowDialog(this) == true)
{
    using (workbook.StartChangeOperation(worksheet))
        row.Height = form.HeaderSize;
}

Visual Basic  Copy Code

Dim form = New HeaderSizeForm("Row Height", "Height", row.Height)
If form.ShowDialog(Me) = True Then

    Using workbook.StartChangeOperation(worksheet)
        row.Height = form.HeaderSize
    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.HeaderSizeForm

 See Also

HeaderSizeForm Members
MindFusion.Spreadsheet.Wpf.StandardForms Namespace