Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / FormulaTextBox Class / Detach Method
Example


In This Topic
    Detach Method (FormulaTextBox)
    In This Topic
    Detaches the Spread component from the formula text box.
    Syntax
    'Declaration
     
    Public Sub Detach() 
    'Usage
     
    Dim instance As FormulaTextBox
     
    instance.Detach()
    public void Detach()
    Example
    This example creates a formula text box.
    FarPoint.Win.Spread.FormulaTextBox editor = new FarPoint.Win.Spread.FormulaTextBox();
    editor.Location = new Point(0, 0);
    editor.Size = new Size(80, 20);
    this.Controls.Add(editor);
    editor.Attach(fpSpread1);
    // This line will disconnect the formula bar from the control
    // editor.Detach();
    Dim editor As New FarPoint.Win.Spread.FormulaTextBox
    editor.Location = New Point(0, 0)
    editor.Size = New Size(80, 20)
    Controls.Add(editor)
    editor.Attach(FpSpread1)
    'This line will disconnect the formula bar from the control 
    'editor.Detach()
    See Also