ESRI.ArcGIS.ADF.Web.UI.WebControls
DefaultImage Property
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Separator Class : DefaultImage Property




The image to use for the Separator. If not specified, the default separator image is used.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("The image URL for this ToolbarItem when it is not selected, disabled, or hovered upon.  Only applicable when ToolbarStyle is ImageOnly or ImageAndText.")>
<NotifyParentPropertyAttribute(True)>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.ObjectImageUrlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<BrowsableAttribute(False)>
<DefaultValueAttribute()>
<ResCategoryAttribute("Appearance: Images")>
Public Property DefaultImage As String
Visual Basic (Usage)Copy Code
Dim instance As Separator
Dim value As String
 
instance.DefaultImage = value
 
value = instance.DefaultImage
C# 
[ResDescriptionAttribute("The image URL for this ToolbarItem when it is not selected, disabled, or hovered upon.  Only applicable when ToolbarStyle is ImageOnly or ImageAndText.")]
[NotifyParentPropertyAttribute(true)]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.ObjectImageUrlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[BrowsableAttribute(false)]
[DefaultValueAttribute()]
[ResCategoryAttribute("Appearance: Images")]
public string DefaultImage {get; set;}

Remarks

If this property is empty (the default), the internal separator image is used from the web resource location, either the embedded resources in the ADF assemblies (if the UseDefaultWebResources property for the Toolbar and other ADF controls is True) or the images in the WebResourceLocation (if UseDefaultWebResources is False).

If this property is set, it must point to a valid image in a location available to the client. Typically this will be a URL on the Web server, using an http: prefix, or a URL relative to the root of the local Web application, using the "~/" prefix. For example, to use an image called mySep.gif in the images folder of the Web application, specify "~/images/mySep.gif" for this property.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.