コード例 #1
0
 public void MoveBefore(object source, object target)
 {
     if (TypeUtilities.IsNumeric(source) && TypeUtilities.IsNumeric(target))
     {
         m_excelWorksheets.MoveBefore(TypeConverter.ToInteger(source), TypeConverter.ToInteger(target));
     }
     else if (TypeUtilities.IsString(source) && TypeUtilities.IsString(target))
     {
         m_excelWorksheets.MoveBefore(TypeConverter.ToString(source), TypeConverter.ToString(target));
     }
     else
     {
         throw new JavaScriptException(this.Engine, "Error", "Could not move worksheet -- did not understand the argument types.");
     }
 }