Formal/written. News and history texts use
当政 for heads of state, party leaders, and dynastic emperors — 'someone is currently in office.' Neutral in tone (neither glorifying nor critical). For everyday 'in charge,' use
掌权 (zhǎngquán) or
执政 (zhízhèng);
执政 specifically applies to ruling parties.