public static void RemoveAllVars(IntPtr bar) { if (!NativeMethods.TwRemoveAllVars(bar)) { throw new AntTweakBarException("TwRemoveAllVars failed."); } } }