AssetUrlSelector.AssetPickerButtonVisible Property
Determines whether the button control used to open 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
true to render the button control used to open the Asset Picker dialog box; otherwise false.
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 an ECMAScript (JavaScript, JScript) 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;
' These values control the appearance of the text box.
' and button for the control
Private Const SampleAssetPickerButtonVisible As Boolean = True
' AddVisibleAssetUrlSelectorControl
' Set values for the appearance of the text box and
' button for the control.
assetSelector.AssetPickerButtonVisible = SampleAssetPickerButtonVisible