WebPart.WebBrowsableObject 属性
定义
获取对 WebPart 控件的引用,以使该控件可由自定义 EditorPart 控件进行编辑。Gets a reference to the WebPart control to enable it to be edited by custom EditorPart controls.
public:
virtual property System::Object ^ WebBrowsableObject { System::Object ^ get(); };
[System.ComponentModel.Browsable(false)]
public virtual object WebBrowsableObject { get; }
[<System.ComponentModel.Browsable(false)>]
member this.WebBrowsableObject : obj
Public Overridable ReadOnly Property WebBrowsableObject As Object
属性值
一个 Object,包含 WebPart 控件的子控件。A Object that consists of the child control of a WebPart control.
实现
- 属性
注解
如果创建自定义 WebPart 控件,并创建相关的自定义 EditorPart 控件以使用户能够在运行时编辑该控件,则必须实现该 IWebEditable 接口,该接口包括 WebBrowsableObject 属性。If you create a custom WebPart control, and also create related custom EditorPart controls to enable users to edit the control at run time, you must implement the IWebEditable interface, which includes the WebBrowsableObject property.
当 WebPart 控件进入编辑模式时, WebBrowsableObject 控件将调用属性 EditorZone 以获取对控件的引用 WebPart ,并使自定义 EditorPart 控件可以对其进行编辑。When the WebPart control enters edit mode, the WebBrowsableObject property is called by an EditorZone control to get a reference to the WebPart control and enable the custom EditorPart controls to edit it.