다음을 통해 공유


AssetUrlSelector.DisplayLookInSection Property

Determines whether the Look In section is hidden when the Asset Picker dialog box is opened.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Property DisplayLookInSection As Boolean
    Get
    Set
'Usage
Dim instance As AssetUrlSelector
Dim value As Boolean

value = instance.DisplayLookInSection

instance.DisplayLookInSection = value
public bool DisplayLookInSection { get; set; }

Property Value

Type: System.Boolean
true to show the Look In section when the Asset Picker dialog box is opened; otherwise, false.

Remarks

By default, the current AssetUrl property value, last remembered location, DefaultOpenLocationUrl property, and known publishing library locations are used to determine where the Asset Picker opens, even if this flag is set to false and the Look In section does not appear in the dialog box. The value for UseImageAssetPicker determines which set of known publishing document libraries appears in the Look In section when it is displayed. When the DisplayLookInSection and DefaultToLastUsedLocation properties are both set to false and the DefaultOpenLocationUrl has a valid location, the Asset Picker opens in that location when there is no current AssetUrl value. It does not display any other locations on the left side of the dialog box, which encourages the user to select a URL from the provided location.

Examples

// These values control the appearance and behavior
// of the Asset Picker dialog box.
private const bool SampleDisplayLookInSection = false;
// Set values for the appearance and behavior of the Asset Picker dialog box.assetSelector.DisplayLookInSection = SampleDisplayLookInSection;
' These values control the appearance and behavior
' of the Asset Picker dialog box.
Private Const SampleDisplayLookInSection As Boolean = False
' Set values for the appearance and behavior of the Asset Picker dialog box.
assetSelector.DisplayLookInSection = SampleDisplayLookInSection

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

UseImageAssetPicker

AssetUrlSelector