Example #1
0
 /// <summary>
 /// 定义字段是否可以编辑。用于单元格,行编辑,和表单编辑。
 /// </summary>
 /// <param name="editType">编辑的类型</param>
 /// <param name="editOptions">根据edittype提供允许的值列表。</param>
 /// <param name="editOptions">对于可编辑单元格的一些额外属性设置。</param>
 /// <returns></returns>
 public Column SetEditable(EditType editType       = EditType.Text,
                           EditOptions editOptions = null, EditRules editRules = null, EditFormOptions editFormOptions = null)
 {
     _editable        = true;
     _editType        = editType;
     _editOptions     = editOptions;
     _editRules       = editRules;
     _editFormOptions = editFormOptions;
     return(this);
 }
Example #2
0
 /// <summary>
 /// 定义字段是否可以编辑。用于单元格,行编辑,和表单编辑。
 /// </summary>
 /// <param name="editType">编辑的类型</param>
 /// <param name="editOptions">根据edittype提供允许的值列表。</param>
 /// <param name="editOptions">对于可编辑单元格的一些额外属性设置。</param>
 /// <returns></returns>
 public Column SetEditable(EditType editType = EditType.Text,
     EditOptions editOptions = null, EditRules editRules = null, EditFormOptions editFormOptions = null)
 {
     _editable = true;
     _editType = editType;
     _editOptions = editOptions;
     _editRules = editRules;
     _editFormOptions = editFormOptions;
     return this;
 }