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
派生
属性

次のコード例では、プロパティを関連付けるために an EditorAttributeImageEditor 使用します。

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

注釈

An 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)

適用対象

こちらもご覧ください