PropertyGridEditorPart.Display 属性

定义

获取一个值,该值指示当某个控件的关联 WebPart 控件在编辑模式下时是否应显示该控件。Gets a value that indicates whether a control should be displayed when its associated WebPart control is in edit mode.

public:
 virtual property bool Display { bool get(); };
public override bool Display { get; }
member this.Display : bool
Public Overrides ReadOnly Property Display As Boolean

属性值

Boolean

一个布尔值,指示是否应显示该控件。A Boolean value that indicates whether the control should be displayed.

注解

Display false 如果基属性的值也为,则属性返回 falseThe Display property returns false if the value on the base property is also false. 否则,如果要编辑的控件不是 null ,则显示该 PropertyGridEditorPart 控件。Otherwise, if the control to be edited is not null, then the PropertyGridEditorPart control is displayed.

Display仅当页面处于编辑模式且 WebPart 已选择控件进行编辑时,此属性才适用。The Display property applies only when a page is in edit mode, and a WebPart control has been selected for editing.

适用于

另请参阅