語言

BitmapEditor 類別

定義

重要

此 API 不符合 CLS 規範。

提供在屬性瀏覽器中選擇位圖檔案的使用者介面。

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

範例

以下程式碼範例使用 將 EditorAttribute 與 BitmapEditor 屬性關聯。

      [EditorAttribute(System::Drawing::Design::BitmapEditor::typeid,System::Drawing::Design::UITypeEditor::typeid)]
      Bitmap^ get()
      {
         return testBmp;
      }

      void set( Bitmap^ value )
      {
         testBmp = value;
      }
   }

private:
   Bitmap^ testBmp;
[EditorAttribute(typeof(System.Drawing.Design.BitmapEditor),
    typeof(System.Drawing.Design.UITypeEditor))]
public Bitmap testBitmap
{
    get
    {
        return testBmp;
    }
    set
    {
        testBmp = value;
    }
}
private Bitmap testBmp;
<EditorAttribute(GetType(System.Drawing.Design.BitmapEditor), _
    GetType(System.Drawing.Design.UITypeEditor))> _
Public Property testBitmap() As Bitmap
    Get
        Return testBmp
    End Get
    Set(ByVal Value As Bitmap)
        testBmp = Value
    End Set
End Property

Private testBmp As Bitmap

備註

此 BitmapEditor 類別提供一種簡單的方法,可以選擇屬性的點陣圖影像。 啟動編輯器時會顯示一個 「開啟檔案 」對話框,允許目錄導航及選擇檔案。 檔案清單最初會篩選出點陣圖(.bmp)檔案。

建構函式

名稱 Description
BitmapEditor()

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

欄位

名稱 Description
BitmapExtensions

提供用於篩選檔案清單的預設副檔名清單。

屬性

名稱 Description
IsDropDownResizable

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

(繼承來源 UITypeEditor)

方法

名稱 Description
EditValue(IServiceProvider, Object)

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

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

使用方法提供的 GetEditStyle(ITypeDescriptorContext) 編輯風格編輯指定的物件值。

(繼承來源 ImageEditor)
Equals(Object)

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

(繼承來源 Object)
GetEditStyle()

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

(繼承來源 UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

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

(繼承來源 ImageEditor)
GetExtensions()

取得檔案列表過濾器的擴充功能,該編輯器最初用來篩選檔案清單。

GetFileDialogDescription()

取得此編輯器提供的預設檔案清單過濾器描述。

GetHashCode()

做為預設哈希函式。

(繼承來源 Object)
GetImageExtenders()

會獲得一組支援的圖片類型。

(繼承來源 ImageEditor)
GetPaintValueSupported()

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

(繼承來源 UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

會取得一個值,表示此編輯器是否支援繪製物件值的表示。

(繼承來源 ImageEditor)
GetType()

取得目前實例的 Type。

(繼承來源 Object)
LoadFromStream(Stream)

從指定的串流載入影像。

MemberwiseClone()

建立目前 Object的淺層複本。

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

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

(繼承來源 UITypeEditor)
PaintValue(PaintValueEventArgs)

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

(繼承來源 ImageEditor)
ToString()

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

(繼承來源 Object)

適用於