AssetUrlSelector.PickerTextBoxWidth property
Gets or sets the width of the picker text box.
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Property PickerTextBoxWidth As Unit
Get
Set
'Usage
Dim instance As AssetUrlSelector
Dim value As Unit
value = instance.PickerTextBoxWidth
instance.PickerTextBoxWidth = value
public Unit PickerTextBoxWidth { get; set; }
Property value
Type: System.Web.UI.WebControls.Unit
An Unit object that represents the width of the text box.
Remarks
Use this property to override the auto-assigned width which has the value of Width property.
Examples
The following example demonstrates how to ensure the width of the text box is at least 200 pixels.
AssetUrlSelector selector = new AssetUrlSelector();
Unit minWidth = Unit.Pixel(200);
if(selector.PickerTextBoxWidth < minWidth)
{
selector.PickerTextBoxWidth = minWidth;
}