Hi Aref
I've split this into a new, unanswered thread to give your question better visibility.
Could you show us a code snippet, please, with how you've tried to use the ToggleRibbon method? It's not quite clear how you were trying to do this.
Also, which versions of Office and VSTO are you working with?
Cindy Meister, VSTO/Word MVP