BehaviorEditorPart.Display Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Property Value
A Boolean value that indicates whether the control should be displayed.
Remarks
The Display property returns a value of true
, meaning that the control will be displayed, except in one case. If the IsShared property value on the WebPart control being edited is true
, and the page is in user personalization scope (which is the default), the control is not displayed. For an explanation of the steps required, and a code example that shows how to cause the BehaviorEditorPart control to be displayed for editing, see the BehaviorEditorPart class overview and code example.
The Web Parts control set is designed with the assumption that shared controls--controls that are visible to all users--should be visible for editing only when a page is in shared personalization scope, meaning that the editing changes are visible to all users.