Re: How to insert (not append) GroupEnd and GroupStart

  •  06-02-2005, 1:30 PM

    Re: How to insert (not append) GroupEnd and GroupStart

    Although this does "copy" the GroupEnd and Start to the new position, I can't figure out how to delete them at the old position.  The following with the added RemoveAt does not work.

    Help!

                //add GroupEnd
                Editor1.AddToolbarGroupEnd();
                Editor1.AddToolbarGroupStart();
                int count = Editor1.ToolControls.Count-1;
                CuteEditor.ToolControl tool = Editor1.ToolControls[count];
                Editor1.ToolControls.Insert(pos,tool);

                Editor1.ToolControls.RemoveAt(count);

                tool = Editor1.ToolControls[--count];
                Editor1.ToolControls.Insert(pos,tool);

                Editor1.ToolControls.RemoveAt(count);

View Complete Thread