A. Thank you all for have been electing me as a leader of the team and it is a great honor for me.
B. It is a great honor for me to be elected as a leader of the team.
Feedback Infinitive phrases in the passive voice help us construct sentences more gracefully and rationally. We create them: [to be + Past Participle]. They can take a position of the subject, object or modifier. Here it is on the place of the object.
C. It is a great honor for me that you have elected me as a leader of the team.
D. Electing as a leader of the team is a great honor for me.