ImageEditor 類別

定義

重要

此 API 不符合 CLS 規範。

提供可以在屬性方格中選取屬性影像的使用者介面。

public ref class ImageEditor : System::Drawing::Design::UITypeEditor
public class ImageEditor : System.Drawing.Design.UITypeEditor
[System.CLSCompliant(false)]
public class ImageEditor : System.Drawing.Design.UITypeEditor
type ImageEditor = class
    inherit UITypeEditor
[<System.CLSCompliant(false)>]
type ImageEditor = class
    inherit UITypeEditor
Public Class ImageEditor
Inherits UITypeEditor
繼承
ImageEditor
衍生
屬性

範例

下列程式代碼範例會使用 EditorAttribute ,將 與屬性產生關聯 ImageEditor

public:
   [EditorAttribute(System::ComponentModel::Design::CollectionEditor::typeid,
      System::Drawing::Design::UITypeEditor::typeid)]
   property Image^ testImage 
   {
      Image^ get()
      {
         return testImg;
      }
      void set( Image^ value )
      {
         testImg = value;
      }
   }
private:
   Image^ testImg;
[EditorAttribute(typeof(System.Drawing.Design.ImageEditor), typeof(System.Drawing.Design.UITypeEditor))]
public Image testImage
{
    get
    {
        return testImg;
    }
    set
    {
        testImg = value;
    }
}
private Image testImg;
<EditorAttribute(GetType(System.Drawing.Design.ImageEditor), GetType(System.Drawing.Design.UITypeEditor))>  _
Public Property testImage() As Image
   Get
      Return testImg
   End Get
   Set
      testImg = value
   End Set
End Property
Private testImg As Image

備註

ImageEditor是 ,UITypeEditor提供使用者介面供用戶選取屬性的影像。 當使用者啟動編輯器時,它會顯示 [ 開啟檔案 ] 對話框,讓使用者瀏覽至目錄並選取檔案。 檔案清單一開始會依編輯器的預設擴展名進行篩選。

建構函式

ImageEditor()

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

屬性

IsDropDownResizable

取得值,表示使用者是否能夠調整下拉式編輯器的大小。

(繼承來源 UITypeEditor)

方法

CreateExtensionsString(String[], String)

使用指定的副檔名陣列和指定的分隔符號來建立副檔名的字串。

CreateFilterEntry(ImageEditor)

為檔案對話方塊的檔案清單建立篩選項目。

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) 方法的編輯樣式。

GetExtensions()

取得檔案清單篩選條件的副檔名,其為此編輯器一開始篩選檔案清單所使用。

GetFileDialogDescription()

取得這個編輯器所提供的預設檔案清單篩選條件的描述。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetImageExtenders()

取得支援的影像類型陣列。

GetPaintValueSupported()

指出這個編輯器是否支援繪製物件值的表示。

(繼承來源 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

取得值,指出這個編輯器是否支援繪製物件值的表示。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
LoadFromStream(Stream)

從指定的資料流載入影像。

MemberwiseClone()

建立目前 Object 的淺層複製。

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

將指定物件的表示值繪製到指定的畫布上。

(繼承來源 UITypeEditor)
PaintValue(PaintValueEventArgs)

繪製由指定的 PaintValueEventArgs 所指示的值。

ToString()

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

(繼承來源 Object)

適用於

另請參閱