ESRI.ArcGIS.ADF.Web.UI.WebControls
DefaultImage Property
See Also 
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) 
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.ObjectImageUrlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResCategoryAttribute("Appearance: Images")>
<DefaultValueAttribute()>
<ResDescriptionAttribute("The image URL for this ToolbarItem when it is not selected, disabled, or hovered upon.  Only applicable when ToolbarStyle is ImageOnly or ImageAndText.")>
<BrowsableAttribute(False)>
<NotifyParentPropertyAttribute(True)>
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# 
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.ObjectImageUrlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResCategoryAttribute("Appearance: Images")]
[DefaultValueAttribute()]
[ResDescriptionAttribute("The image URL for this ToolbarItem when it is not selected, disabled, or hovered upon.  Only applicable when ToolbarStyle is ImageOnly or ImageAndText.")]
[BrowsableAttribute(false)]
[NotifyParentPropertyAttribute(true)]
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.

See Also

© 2010 All Rights Reserved.