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) 檔案。

建構函式

BitmapEditor()

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

欄位

BitmapExtensions

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

屬性

IsDropDownResizable

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

(繼承來源 UITypeEditor)

方法

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)

適用於