WebPartZoneBase.MenuPopupStyle 属性

定义

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

public:
 property System::Web::UI::WebControls::WebParts::WebPartMenuStyle ^ MenuPopupStyle { System::Web::UI::WebControls::WebParts::WebPartMenuStyle ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
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 属性,您可以设置显示在区域中每个 WebPart 控件上的下拉谓词菜单的样式特性。The 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.

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

适用于

另请参阅