/// <summary> /// Gets the information if the task pane for the document is visible. /// </summary> public bool TaskPaneVisible(_Document document, string caption) { return(CustomTaskPanes.Any(pane => pane.Window == document.ActiveWindow && pane.Title.Equals(caption) && pane.Visible)); }
/// <summary> /// Gets the information if the task pane for the document is visible. /// </summary> public bool TaskPaneVisible <T>(_Document document) where T : UIElement { return(CustomTaskPanes.Any(pane => pane.Window == document.ActiveWindow && pane.Control is HostPane <T> && pane.Visible)); }