Name

ImageUrlEditor

Synopsis

This class provides a System.Drawing.Design.UITypeEditor that can be used when modifying properties that correspond to Internet URLs. This class extends on the basic UrlEditor class and is customized for creating URLs that point to image files. The differences are minor: the Filter property is overridden to provide the “*.gif; *.jpg; *.jpeg; *.bmp; *.wmf; *.pgn” file filter, and the Caption of the designer window is modified to “Select Image File.” This class is used, for example, by the ImageUrl property of the System.Web.UI.WebControls.HyperLink control.

Public Class ImageUrlEditor : Inherits UrlEditor
' Public Constructors
   Public Sub New() 
' Protected Instance Properties
   Overrides Protected Property Caption As String  
   Overrides Protected Property Filter As String  
End Class

Hierarchy

System.ObjectSystem.Drawing.Design.UITypeEditorUrlEditor ImageUrlEditor

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.