แก้ไข

แชร์ผ่าน


ImageUrlEditor Class

Definition

Provides a user interface for selecting a URL that references an image.

public ref class ImageUrlEditor : System::Web::UI::Design::UrlEditor
public class ImageUrlEditor : System.Web.UI.Design.UrlEditor
type ImageUrlEditor = class
    inherit UrlEditor
Public Class ImageUrlEditor
Inherits UrlEditor
Inheritance
ImageUrlEditor

Examples

public:
   property String^ imageURL 
   {
      [EditorAttribute(ImageUrlEditor::typeid,UITypeEditor::typeid)]
      String^ get()
      {
         return imgURL;
      }


      [EditorAttribute(ImageUrlEditor::typeid,UITypeEditor::typeid)]
      void set( String^ value )
      {
         imgURL = value;
      }

   }

private:
   String^ imgURL;
[EditorAttribute(typeof(System.Web.UI.Design.ImageUrlEditor), typeof(UITypeEditor))]
public string imageURL
{
    get
    {
        return imgURL;
    }
    set
    {
        imgURL = value;
    }
}

private string imgURL;
<EditorAttribute(GetType(System.Web.UI.Design.ImageUrlEditor), GetType(UITypeEditor))> _
Public Property imageURL() As String
    Get
        Return imgURL
    End Get
    Set(ByVal Value As String)
        imgURL = Value
    End Set
End Property

Private imgURL As String

Remarks

ImageUrlEditor is a UITypeEditor that provides a dialog box for selecting a URL property that references an image.

Constructors

ImageUrlEditor()

Initializes a new instance of the ImageUrlEditor class.

Properties

Caption

Gets the caption to display on the selection dialog window.

Filter

Gets the file name filter string for the editor. This string is used to determine the items that appear in the file list of the dialog box.

IsDropDownResizable

Gets a value indicating whether drop-down editors should be resizable by the user.

(Inherited from UITypeEditor)
Options

Gets the options for the URL builder to use.

(Inherited from UrlEditor)

Methods

EditValue(IServiceProvider, Object)

Edits the value of the specified object using the editor style indicated by the GetEditStyle() method.

(Inherited from UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object)

Edits the value of the specified object using the editor style provided by the GetEditStyle(ITypeDescriptorContext) method.

(Inherited from UrlEditor)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEditStyle()

Gets the editor style used by the EditValue(IServiceProvider, Object) method.

(Inherited from UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

Gets the editing style of the EditValue(ITypeDescriptorContext, IServiceProvider, Object) method.

(Inherited from UrlEditor)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetPaintValueSupported()

Indicates whether this editor supports painting a representation of an object's value.

(Inherited from UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

Indicates whether the specified context supports painting a representation of an object's value within the specified context.

(Inherited from UITypeEditor)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PaintValue(Object, Graphics, Rectangle)

Paints a representation of the value of the specified object to the specified canvas.

(Inherited from UITypeEditor)
PaintValue(PaintValueEventArgs)

Paints a representation of the value of an object using the specified PaintValueEventArgs.

(Inherited from UITypeEditor)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to