API Help
Eplan.EplApi.Gui Namespace / Toolbar Class / RemoveButton Method
the name of the toolbar.
the index of the button. Starts with zero.

In This Topic
    RemoveButton Method
    In This Topic
    Remove a button or separator of the custom toolbar
    Syntax
    public void RemoveButton( 
       string strToolbarName,
       int nIndex
    )
    public:
    void RemoveButton( 
       String^ strToolbarName,
       int nIndex
    ) 

    Parameters

    strToolbarName
    the name of the toolbar.
    nIndex
    the index of the button. Starts with zero.
    Remarks
    When the last button is deleted, the custom toolbar itself is also deleted! When there is button (or separator) at start of line with separator on right, separator will be removed as well. When there is button (or separator) at end of line with separator on left, separator will be removed as well. When button (or separator) has separator either side - second separator will be removed too. Only one separator will be removed additionally.
    See Also