📜  closedxml 使用下拉菜单创建 excel - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:39.887000             🧑  作者: Mango

代码示例2
var options = new List{"Option1","Option2","Option3"};
var validOptions = $"\"{String.Join(",", options)}\"";
ws.Cell(1,1).DataValidation.List(validOptions, true);

//validOptions contains :
"Option1,Option2,Option3"`

//Your own code should change to :
.List("\"one,two,three\"", true);