/// <summary> /// Adds a new panel to a tab of a specified ribbon. /// </summary> /// <param name="userInterfaceManager"> /// The <see cref="UserInterfaceManager"/> instance that this extension method affects.</param> /// <param name="name">The panel name.</param> /// <param name="displayName">The panel display name.</param> /// <param name="tabName">The tab name.</param> /// <param name="ribbonName">The ribbon name.</param> /// <returns>The new <see cref="RibbonPanel"/> instance.</returns> /// <exception cref="ArgumentNullException"><paramref name="userInterfaceManager"/> is <c>null</c>.</exception> /// <exception cref="InvalidOperationException">A panel with the specified name already exists in the specified ribbon's tab.</exception> public static RibbonPanel AddPanel(this UserInterfaceManager userInterfaceManager, string name, string displayName, string tabName, string ribbonName) { return(userInterfaceManager.AddPanel(name, displayName, tabName, ribbonName, string.Empty, false)); }