AssetUrlSelector.UseImageAssetPicker Property

Determines if the Asset Picker dialog box is opened 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
true if the Asset Pickerdialog box is opened for the purpose of selecting an image URL; otherwise false (the default).

Remarks

If set to true, 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 appearance and behavior of the Asset Picker dialog box.assetSelector.UseImageAssetPicker = SampleUseImageAssetPicker;
' These values control the appearance and behavior
' of the Asset Picker dialog box.
Private Const SampleUseImageAssetPicker As Boolean = False
' Set values for the appearance and behavior of the Asset Picker dialog box.
assetSelector.UseImageAssetPicker = SampleUseImageAssetPicker

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlSelector