UrlEditor 類別

定義

提供一個使用者介面以選取 URL。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
繼承
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

備註

UrlEditorUITypeEditor是, 可提供用來選取 URL 的對話方塊。UrlEditor is a UITypeEditor that provides a dialog box for selecting a URL.

建構函式

UrlEditor()

初始化 UrlEditor 類別的新執行個體。Initializes a new instance of the UrlEditor class.

屬性

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.

(繼承來源 UITypeEditor)
Options

取得 URL 產生器 (Builder) 使用的選項。Gets the options for the URL builder to use.

方法

EditValue(IServiceProvider, Object)

使用由 GetEditStyle() 方法指示的編輯器樣式,來編輯指定物件的值。Edits the value of the specified object using the editor style indicated by the GetEditStyle() method.

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

使用由 GetEditStyle(ITypeDescriptorContext) 方法提供的編輯器樣式,來編輯指定物件的值。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.

(繼承來源 Object)
GetEditStyle()

取得 EditValue(IServiceProvider, Object) 方法所使用的編輯器樣式。Gets the editor style used by the EditValue(IServiceProvider, Object) method.

(繼承來源 UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

取得 EditValue(ITypeDescriptorContext, IServiceProvider, Object) 方法的編輯樣式。Gets the editing style of the EditValue(ITypeDescriptorContext, IServiceProvider, Object) method.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetPaintValueSupported()

指出這個編輯器是否支援繪製物件值的表示。Indicates whether this editor supports painting a representation of an object's value.

(繼承來源 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

指出指定的內容是否支援在指定的內容中繪製物件值的表示。Indicates whether the specified context supports painting a representation of an object's value within the specified context.

(繼承來源 UITypeEditor)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

將指定物件的表示值繪製到指定的畫布上。Paints a representation of the value of the specified object to the specified canvas.

(繼承來源 UITypeEditor)
PaintValue(PaintValueEventArgs)

使用指定的 PaintValueEventArgs 來繪製物件值的表示。Paints a representation of the value of an object using the specified PaintValueEventArgs.

(繼承來源 UITypeEditor)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於