在SharePoint Web Part的ToolPart中使用SPListTemplateType构成下拉框,在选择时发生错位的现象。
目前研究的结果:
1. SPListTemplateType在SharePoint中的定义如下: public enum SPListTemplateType: int { // this should never be used to set a listtemplatetype. // This is used only to used to enumerate all types // Warning: If you add or remove items in this list, // beware that you may affect the values of other items InvalidType =-1, // begin usable types GenericList = 100, // LISTTEMPLATE_GENERIC_LIST 100 DocumentLibrary, // LISTTEMPLATE_DOCUMENT_LIBRARY 101 Survey, // LISTTEMPLATE_SURVEY 102 Links, // LISTTEMPLATE_LINKS 103 Announcements, // LISTTEMPLATE_ANNOUNCEMENTS 104 Contacts, // LISTTEMPLATE_CONTACTS 105 Events, // LISTTEMPLATE_EVENTS 106 Tasks, // LISTTEMPLATE_TASKS 107 DiscussionBoard, // LISTTEMPLATE_DISCUSSION 108 PictureLibrary, // LISTTEMPLATE_IMAGE_LIBRARY 109 DataSources, // LISTTEMPLATE_DATA_SOURCES 110 WebTemplateCatalog, // LISTTEMPLATE_WEB_TEMPLATE_CATALOG 111 WebPartCatalog = 113, // LISTTEMPLATE_WEB_PART_CATALOG 113 ListTemplateCatalog, // LISTTEMPLATE_LIST_TEMPLATE_CATALOG 114