@roger,
Roger is right. If she holds the position she "has held it for x years". If she "vacated" the position she "had held it for x years".
You can think of the "past perfect" tense as "before a moment in the past". So if she "vacated" the position it puts this in the past, and would mean "she had held" the position before that point in the past where it was "vacated".
Here's some easier examples:
I saw roger on an English thread today, he
had answered the question and I wanted to agree with his answer.
When I saw roger on the thread (in the past) he had already answered (before this moment in the past).