語言

UrlEditor 類別

定義

提供使用者介面以選擇網址。

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
繼承
UrlEditor
衍生

範例

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

備註

UrlEditor 是 UITypeEditor 提供一個用於選擇網址的對話框。

建構函式

名稱 Description
UrlEditor()

初始化 UrlEditor 類別的新執行個體。

屬性

名稱 Description
Caption

讓標題顯示在選擇對話框上。

Filter

取得編輯器的檔名過濾字串。 這用來判斷對話框檔案列表中出現的項目。

IsDropDownResizable

會有一個值,指示下拉選單編輯器是否應該被使用者調整大小。

(繼承來源 UITypeEditor)
Options

取得網址建構器可用的選項。

方法

名稱 Description
EditValue(IServiceProvider, Object)

使用方法指示 GetEditStyle() 的編輯器樣式編輯指定物件的值。

(繼承來源 UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object)

使用方法提供的 GetEditStyle(ITypeDescriptorContext) 編輯器樣式編輯指定物件的值。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEditStyle()

會得到方法中使用的 EditValue(IServiceProvider, Object) 編輯器風格。

(繼承來源 UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

能掌握剪輯方法的 EditValue(ITypeDescriptorContext, IServiceProvider, Object) 風格。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetPaintValueSupported()

表示此編輯器是否支援繪製物件價值的表示。

(繼承來源 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

表示指定的上下文是否支持在指定上下文中繪製物件價值的表示。

(繼承來源 UITypeEditor)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
MemberwiseClone()

建立目前 Object的淺層複本。

(繼承來源 Object)
PaintValue(Object, Graphics, Rectangle)

繪製指定物件價值在指定畫布上的表示。

(繼承來源 UITypeEditor)
PaintValue(PaintValueEventArgs)

使用指定的 PaintValueEventArgs繪製物件值的表示。

(繼承來源 UITypeEditor)
ToString()

傳回表示目前 物件的字串。

(繼承來源 Object)

適用於