using System.Collections.Generic;
Dictionary<string, string> dicB = new Dictionary<string, string>() { {"B1","○"},{"B2","○"},{"B3","○"},{"B4","○"},{"B5","○"}, {"B6","○"},{"B7","○"},{"B8","○"},{"B9","○"},{"B10","○"} };
当使用字典类时,循环
foreach (KeyValuePair<string, string> item in dicB) { wth.UseBookmark(doc, item.Key, item.Value); }
时间: 2024-10-29 12:28:07