Share via


AssetUrlSelector.UseImageAssetPicker Property

Determines if the Asset Picker dialog box is launched for the purpose of selecting an image URL.

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

Syntax

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

value = instance.UseImageAssetPicker

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

Property Value

Type: System.Boolean
If set to true, the Asset Picker dialog box is launched for the purpose of selecting an image URL. Default is false.

Remarks

If set to true then the "Look In" section on the left side of the dialog box shows known locations for publishing image document libraries and the user is warned if the selected URL does not have a known image file extension.

Examples

        // These values control the appearance and behavior
        // of the Asset Picker dialog box.
        private const bool SampleUseImageAssetPicker = false;
        // Set values for the apperance and behavior of the Asset Picker dialog box.
            assetSelector.UseImageAssetPicker = SampleUseImageAssetPicker;

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlSelector