When you resign, you are no longer “elected.”
When you quit your job, are you still working there?
No, but if I had a 6 year contract, I’d be quitting before the time for which I was hired.
It seems like you are contorting plain English there. ‘During the time for which he was elected’ would commonly be interpreted as the six year term for which she was elected, whether or not she steps down early.