Share via


AssetUrlSelector.AssetPickerButtonVisible Property

Determines if the button control used to launch the Asset Picker dialog box is rendered.

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

Syntax

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

value = instance.AssetPickerButtonVisible

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

Property Value

Type: System.Boolean
If set to false, the button control used to launch the Asset Picker dialog box will not be rendered. Defaults to true.

Remarks

If set to false, a button control is not rendered, and cannot be used to open the Asset Picker dialog box. In this case, use the GetClientLaunchPickerReference method to get a JavaScript string that opens the Asset Picker.

Examples

        // These values control the appearance of the text box
        // and button for the control
        private const bool SampleAssetPickerButtonVisible = true;

        // AddVisibleAssetUrlSelectorControl 
            // Set values for the appearance of the text box and 
            // button for the control
            assetSelector.AssetPickerButtonVisible = SampleAssetPickerButtonVisible;

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlSelector