Redigeeri

Jagamisviis:


UrlEditor Class

Definition

Provides a user interface for selecting a URL.

public ref class UrlEditor : System::Drawing::Design::UITypeEditor
public class UrlEditor : System.Drawing.Design.UITypeEditor
type UrlEditor = class
    inherit UITypeEditor
Public Class UrlEditor
Inherits UITypeEditor
Inheritance
UrlEditor
Derived

Examples

public:
   property String^ URL 
   {

       [EditorAttribute(UrlEditor::typeid,UITypeEditor::typeid)]
      String^ get()
      {
         return http_url;
      }

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

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

private string http_url;
<EditorAttribute(GetType(System.Web.UI.Design.UrlEditor), GetType(UITypeEditor))>  _
Public Property URL() As String
   Get
      Return http_url
   End Get
   Set
      http_url = value
   End Set
End Property

Private http_url As String

Remarks

UrlEditor is a UITypeEditor that provides a dialog box for selecting a URL.

Constructors

UrlEditor()

Initializes a new instance of the UrlEditor class.

Properties

Caption

Gets the caption to display on the selection dialog box.

Filter

Gets the file name filter string for the editor. This 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.

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.

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.

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