private IDisplay ActiveDisplay(IMapDocument doc) { if (doc == null || doc.FocusMap == null) { return null; } return doc.FocusMap.Display; } }