功能区xml显示图标
xml文件的属性和方法
属性或方法 |
返回值 |
描述 |
xmlns |
String |
必须使用 “http://schemas.microsoft.com/office/2006/01/customui” |
onLoad |
callback |
再功能区加载的时候,将功能区参数传递给回调函数 |
loadImage |
callback |
实现loadImage函数可以使用用户自定义的图片 |
xml示例
<?xml version="1.0" encoding="UTF-8"?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnLoad">
<ribbon>
<tabs>
<tab idMso="TabAddIns">
<group id="MyGroup"
label="My Group">
</group>
</tab>
</tabs>
</ribbon>
</customUI>
元素 |
描述 |
customUi |
表示自定义的功能区 |
ribbon |
表示功能区 |
tabs |
表示功能区选项卡组 |
tab |
表示单个功能区选项卡 |
group |
表述功能区选项卡上的控件组 |