在C#
我可以用#region #endregion
关键字划分我的代码。
此功能是否有任何关键字xml
?
我现在不知道它是否重要,我正在使用Visual Studio 2010
.
编辑 :
例如:我有不同但对应的标签,例如上面这些:我想为 tool_planes 创建一个区域并折叠它们。然后为 tool_lines 等创建一个区域。
<RibbonSeparatablePopupMenu key="tool_Plane1" preferred-tool-size="Large" Type="Classic">
<RibbonGallery key="tool_Plane_Gallery1" >
<RibbonGalleryCategory key="tool_Plane_Category1">
<RibbonGalleryCategoryItem key="tool_Plane_3PointPlane" />
...
</RibbonGalleryCategory>
</RibbonGallery>
</RibbonSeparatablePopupMenu>
<RibbonSeparatablePopupMenu key="tool_Plane2" preferred-tool-size="Large" Type="Classic">
<RibbonGallery key="tool_Plane_Gallery2" >
<RibbonGalleryCategory key="tool_Plane_Category2">
<RibbonGalleryCategoryItem key="tool_Plane_OrthogonalPlane" />
...
</RibbonGalleryCategory>
</RibbonGallery>
</RibbonSeparatablePopupMenu>
我不想用单独的 xml 标签对它们进行分组