WebPartZoneBase.MenuPopupStyle 属性


获取出现在区域中 WebPart 控件上的下拉谓词菜单的样式特性。Gets style attributes for the drop-down verbs menu that appears on WebPart controls in a zone.

 property System::Web::UI::WebControls::WebParts::WebPartMenuStyle ^ MenuPopupStyle { System::Web::UI::WebControls::WebParts::WebPartMenuStyle ^ get(); };
public System.Web.UI.WebControls.WebParts.WebPartMenuStyle MenuPopupStyle { get; }
member this.MenuPopupStyle : System.Web.UI.WebControls.WebParts.WebPartMenuStyle
Public ReadOnly Property MenuPopupStyle As WebPartMenuStyle



包含谓词菜单的样式特性的 WebPartMenuStyleA WebPartMenuStyle that contains style attributes for the verbs menu.



使用 MenuPopupStyle 属性可以设置显示在区域中每个控件上的下拉谓词菜单的样式特性 WebPartThe MenuPopupStyle property enables you to set style attributes for the drop-down verbs menu that appears on each WebPart control in a zone. 尽管对象本身是只读的,但仍可以设置基础属性的值。While the object itself is read-only, you can still set values for the underlying attributes. 可以设置整个菜单的样式特性,如边框颜色、样式和宽度;字体详细信息;高度和宽度;背景色;单元格填充和间距;如果用户操作系统) 中启用了隐藏功能,阴影颜色 (和网格线。You can set style attributes for the entire menu, such as its border color, style, and width; font details; height and width; background color; cell padding and spacing; shadow color (if shadowing is enabled in the user's operating system); and gridlines.

MenuPopupStyle仅当 WebPartVerbRenderMode 属性值设置为(默认值)时,此属性才适用 MenuThe MenuPopupStyle property applies only when the WebPartVerbRenderMode property value is set to Menu, which is the default.