using ExcelDna.Integration.CustomUI; using System.Reflection; using System.Runtime.InteropServices; #if! NET472 using System.Runtime.Versioning; #endif using System.Windows.Forms; namespace RhSolutions.Controllers; #if !NET472 [SupportedOSPlatform("windows")] #endif [ComVisible(true)] public class RibbonController : ExcelRibbon { private static IRibbonUI ribbonUi; private static bool _workbookIsValid; public override string GetCustomUI(string RibbonID) { return @"