public static bool IsActive(this xlApp app) { Requires.NotNull(app, nameof(app)); return(Equals(app, app.Session().TopMost)); }