Freigeben über


CMFCRibbonPanel::Remove

Removes and optionally deletes an element located at the specified index.

BOOL Remove(
    int nIndex,
    BOOL bDelete = TRUE
);

Parameters

  • [in] nIndex
    Specifies the zero-based index of the element that is removed from the ribbon panel.

  • [in] bDelete
    TRUE to delete the element being removed; otherwise, FALSE.

Return Value

TRUE if the element has been removed and deleted (if bDelete is TRUE); FALSE if the element was not removed or if there is no ribbon element located at nIndex.

Remarks

Call this method to remove an element from the ribbon panel.

Requirements

Header: afxRibbonPanel.h

See Also

Reference

CMFCRibbonPanel Class

Hierarchy Chart