使用C#为Excel中的形状添加自定义上下文菜单

我想添加一些额外的形状的上下文菜单,但它似乎没有工作。 这是我使用的代码:

CommandBar MyShapeContext = this.Application.CommandBars["Shapes"]; CommandBarButton MyButton = (CommandBarButton)MyShapeContext.Controls.Add(MsoControlType.msoControlButton, Type.Missing, Type.Missing, 1, true); MyButton.BeginGroup = true; MyButton.Visible = true; MyButton.Caption = "Test"; MyButton.Tag = "MyButton"; MyButton.Click += new _CommandBarButtonEvents_ClickEventHandler(OnRootClassClick); 

这适用于自定义单元格上下文菜单,但现在的形状。 我该怎么做呢?