WebPart.ChromeType 属性

定义

获取或设置构成 Web 部件控件的框架的边框类型。Gets or sets the type of border that frames a Web Parts control.

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

属性值

PartChromeType 值之一。One of the PartChromeType values. 默认值为 DefaultThe default is Default.

属性

例外

该值不是 PartChromeType 值之一。The value is not one of the PartChromeType values.

注解

部件控件的 WebPartManager 属性决定控件周围的边框类型。A part control's WebPartManager property determines what kind of border surrounds the control. 选项包括仅显示标题、仅显示边框、标题和边框、不显示或默认选项(只使用 PartChromeType 属性的值)。Options include showing a title only, a border only, a title and border, neither, or the default option, which simply uses the value of the PartChromeType property.

WebPart 类将重写基属性,以便最终用户可以对其进行个性化设置。The WebPart class overrides the base property so that end users can personalize it.

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

适用于

另请参阅