AssetUrlSelector.PickerButtonText Property
Gets or sets the text for the button used to launch the Asset Picker dialog box.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property PickerButtonText As String
Get
Set
'Usage
Dim instance As AssetUrlSelector
Dim value As String
value = instance.PickerButtonText
instance.PickerButtonText = value
public string PickerButtonText { get; set; }
Property Value
Type: System.String
The text for the button used to launch the Asset Picker dialog box. Uses default text if none is specified.
Remarks
This property uses default text if none is specified.
It 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 string SamplePickerButtonText = "Sample Button Text";
// These values control the appearance and behavior
// of the Asset Picker dialog box.
// Set values for the appearance of the text box and
// button for the control
assetSelector.AssetPickerButtonVisible = SampleAssetPickerButtonVisible;
assetSelector.AssetUrlTextBoxVisible = SampleAssetUrlTextBoxVisible;
assetSelector.ButtonType = SampleButtonType;
assetSelector.PickerButtonText = SamplePickerButtonText;