Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets and sets the URL for the image when ButtonType is set to ButtonType.Image. Uses a default image when none is specified.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property PickerButtonImage As String
Get
Set
'Usage
Dim instance As AssetUrlSelector
Dim value As String
value = instance.PickerButtonImage
instance.PickerButtonImage = value
public string PickerButtonImage { get; set; }
Property Value
Type: System.String
The URL for the image when ButtonType is set to ButtonType.Image.
Remarks
This property has no effect if the AssetPickerButtonVisible property is set to false.
Examples
// These values control the appearance of the text box
// and button for the control.
private const bool SampleAssetPickerButtonVisible = true;
private const bool SampleAssetUrlTextBoxVisible = true;
private const ButtonType SampleButtonType = ButtonType.Image;
private const string SamplePickerButtonImage = "/_layouts/images/icdoc.gif";
// These values control the appearance and behavior
// of the Asset Picker dialog box.
private const bool SampleUseImageAssetPicker = false;
private const string SampleOverrideDialogImageUrl = "/_layouts/images/icdoc.gif";
// AddVisibleAssetUrlSelectorControl -
// This sample constructs an AssetUrlSelector with
// various settings and adds it to a control collection
// in a Web page. // Set values for the appearance of the text box and // button for the controlassetSelector.AssetPickerButtonVisible = SampleAssetPickerButtonVisible;assetSelector.AssetUrlTextBoxVisible = SampleAssetUrlTextBoxVisible;assetSelector.ButtonType = SampleButtonType;assetSelector.PickerButtonImage = SamplePickerButtonImage;assetSelector.PickerButtonText = SamplePickerButtonText;
' These values control the appearance of the text box
' and button for the control.
Private Const SampleAssetPickerButtonVisible As Boolean = True
Private Const SampleAssetUrlTextBoxVisible As Boolean = True
Private Const SampleButtonType As ButtonType = ButtonType.Image
Private Const SamplePickerButtonImage As String = "/_layouts/images/icdoc.gif"
' These values control the appearance and behavior
' of the Asset Picker dialog box.
Private Const SampleUseImageAssetPicker As Boolean = False
Private Const SampleOverrideDialogImageUrl As String = "/_layouts/images/icdoc.gif"
' AddVisibleAssetUrlSelectorControl -
' This sample constructs an AssetUrlSelector with
' various settings and adds it to a control collection
' in a Web page.
' Set values for the appearance of the text box and
' button for the control
assetSelector.AssetPickerButtonVisible = SampleAssetPickerButtonVisible
assetSelector.AssetUrlTextBoxVisible = SampleAssetUrlTextBoxVisible
assetSelector.ButtonType = SampleButtonType
assetSelector.PickerButtonImage = SamplePickerButtonImage
assetSelector.PickerButtonText = SamplePickerButtonText