WebPart.ChromeState 属性

定义

获取或设置部件控件是处于最小化状态还是正常状态。Gets or sets whether a part control is in a minimized or normal state.

public:
 virtual property System::Web::UI::WebControls::WebParts::PartChromeState ChromeState { System::Web::UI::WebControls::WebParts::PartChromeState get(); void set(System::Web::UI::WebControls::WebParts::PartChromeState value); };
[System.Web.UI.WebControls.WebParts.Personalizable]
public override System.Web.UI.WebControls.WebParts.PartChromeState ChromeState { get; set; }
member this.ChromeState : System.Web.UI.WebControls.WebParts.PartChromeState with get, set
Public Overrides Property ChromeState As PartChromeState

属性值

PartChromeState 值之一。One of the PartChromeState values. 默认值为 NormalThe default is Normal.

属性

例外

指定的值不是 PartChromeState 值之一。The value specified is not one of the PartChromeState values.

注解

部件控件的 ChromeState 属性值可以是正常或最小化。A part control's ChromeState property value can be normal or minimized. WebPart 类将重写基属性,以便最终用户可以对其进行个性化设置。The WebPart class overrides the base property so that end users can personalize it.

有关使用此属性的代码示例,请参阅 base ChromeState 属性。For a code example that uses this property, see the base ChromeState property.

适用于

另请参阅