WebPartMenuStyle.HorizontalAlign 属性

定义

获取一个值,该值指示 WebPart 控件上的菜单内容要使用哪种水平对齐方式。Gets a value indicating what type of horizontal alignment to use for the content of a menu on a WebPart control.

public:
 virtual property System::Web::UI::WebControls::HorizontalAlign HorizontalAlign { System::Web::UI::WebControls::HorizontalAlign get(); void set(System::Web::UI::WebControls::HorizontalAlign value); };
[System.ComponentModel.Browsable(false)]
public override System.Web.UI.WebControls.HorizontalAlign HorizontalAlign { get; set; }
[<System.ComponentModel.Browsable(false)>]
member this.HorizontalAlign : System.Web.UI.WebControls.HorizontalAlign with get, set
Public Overrides Property HorizontalAlign As HorizontalAlign

属性值

HorizontalAlign

一个 HorizontalAlign 枚举值,该枚举值指定要使用的对齐方式。A HorizontalAlign enumeration value that specifies what type of alignment to use. 默认值可从基 HorizontalAlign 属性值获取。The default value is obtained from the base HorizontalAlign property value.

属性

注解

HorizontalAlign属性重写基属性,以防止设置对齐,并向属性添加某些特性。The HorizontalAlign property overrides the base property to prevent the alignment from being set, and to add some attributes to the property. 属性从基属性值获取其值 TableStyle.HorizontalAlign ,但不为 setter 提供任何实现,因此不能使用此属性来设置菜单内容的对齐方式。The property gets its value from the base TableStyle.HorizontalAlign property value, but does not provide any implementation for the setter, so you cannot set the alignment of the menu content by using this property.

适用于

另请参阅