<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="MenuConfiguration" type="WindowsApplication4.MenusSection,WindowsApplication4,PublicKeyToken=null" />
</configSections>
<MenuConfiguration>
<Menu Caption="XML导入菜单1(&R)" Visible="true" Enabled="true" Before="null" ToolBar="true">
<MenuButton Caption="普通菜单123(&N)" FaceId="null" Visible="true" Enabled="true" BeginGroup="false" Dll="Word2003AddInsXmlMenuSample" Class="MenuEventTest.MyMenuEventTest" Method="oCommandBarButton1_Click" Before="null" />
<MenuButton Caption="普通菜单23(&N)" FaceId="null" Visible="true" Enabled="true" BeginGroup="false" Dll="Word2003AddInsXmlMenuSample" Class="MenuEventTest.MyMenuEventTest" Method="oCommandBarButton1_Click" Before="null" />
<MenuButton Caption="普通菜单3(&N)" FaceId="null" Visible="true" Enabled="true" BeginGroup="false" Dll="Word2003AddInsXmlMenuSample" Class="MenuEventTest.MyMenuEventTest" Method="oCommandBarButton1_Click" Before="null" />
<MenuPopup Caption="弹出菜单20" Visible="true" Enabled="true" Before="null" />
<MenuPopup Caption="弹出菜单30" Visible="true" Enabled="true" Before="null" />
<MenuPopup Caption="弹出菜单70" Visible="true" Enabled="true" Before="null" />
</Menu>
<Menu Caption="XML导入W菜单223(&R)" Visible="true" Enabled="true" Before="null" ToolBar="true">
<MenuPopup Caption="弹出菜单7" Visible="true" Enabled="true" Before="null" />
</Menu>
</MenuConfiguration>
</configuration>
如题: 这是一个我的WINFORM配置文件,结构如上,用ConfigurationSection写他的TYPE文件,我现在不知道怎么让MenuButton MenuPopup 能在同级别(同一级别的节点,如上!)另外又都能重复!!(网上没有我这类似的情况,可能我没找到)希望对配置文件了解的高手能帮帮忙! 给点提示或者源码! 谢谢!!
<configuration>
<configSections>
<section name="MenuConfiguration" type="WindowsApplication4.MenusSection,WindowsApplication4,PublicKeyToken=null" />
</configSections>
<MenuConfiguration>
<Menu Caption="XML导入菜单1(&R)" Visible="true" Enabled="true" Before="null" ToolBar="true">
<MenuButton Caption="普通菜单123(&N)" FaceId="null" Visible="true" Enabled="true" BeginGroup="false" Dll="Word2003AddInsXmlMenuSample" Class="MenuEventTest.MyMenuEventTest" Method="oCommandBarButton1_Click" Before="null" />
<MenuButton Caption="普通菜单23(&N)" FaceId="null" Visible="true" Enabled="true" BeginGroup="false" Dll="Word2003AddInsXmlMenuSample" Class="MenuEventTest.MyMenuEventTest" Method="oCommandBarButton1_Click" Before="null" />
<MenuButton Caption="普通菜单3(&N)" FaceId="null" Visible="true" Enabled="true" BeginGroup="false" Dll="Word2003AddInsXmlMenuSample" Class="MenuEventTest.MyMenuEventTest" Method="oCommandBarButton1_Click" Before="null" />
<MenuPopup Caption="弹出菜单20" Visible="true" Enabled="true" Before="null" />
<MenuPopup Caption="弹出菜单30" Visible="true" Enabled="true" Before="null" />
<MenuPopup Caption="弹出菜单70" Visible="true" Enabled="true" Before="null" />
</Menu>
<Menu Caption="XML导入W菜单223(&R)" Visible="true" Enabled="true" Before="null" ToolBar="true">
<MenuPopup Caption="弹出菜单7" Visible="true" Enabled="true" Before="null" />
</Menu>
</MenuConfiguration>
</configuration>
如题: 这是一个我的WINFORM配置文件,结构如上,用ConfigurationSection写他的TYPE文件,我现在不知道怎么让MenuButton MenuPopup 能在同级别(同一级别的节点,如上!)另外又都能重复!!(网上没有我这类似的情况,可能我没找到)希望对配置文件了解的高手能帮帮忙! 给点提示或者源码! 谢谢!!
public MenuPopupElementCollection MenuPopup
{
get
{
return (MenuPopupElementCollection)base[""];
}
}
那那位高手能说说这个 NULL 和BASE[""] 为什么这么填啊 另外 要怎么在实现一个 MenuButton 呢