Share via


XmlFileEditor Kelas

Definisi

Menyediakan antarmuka pengguna untuk memilih file XML menggunakan kotak standar OpenFileDialog .

public ref class XmlFileEditor : System::Drawing::Design::UITypeEditor
public class XmlFileEditor : System.Drawing.Design.UITypeEditor
type XmlFileEditor = class
    inherit UITypeEditor
Public Class XmlFileEditor
Inherits UITypeEditor
Warisan
XmlFileEditor

Contoh

private:
   property String^ XmlFile 
   {
      [EditorAttribute(XmlFileEditor::typeid,UITypeEditor::typeid)]
      String^ get()
      {
         return xml_;
      }

      [EditorAttribute(XmlFileEditor::typeid,UITypeEditor::typeid)]
      void set( String^ value )
      {
         xml_ = value;
      }
   }
   String^ xml_;
[EditorAttribute(typeof(System.Web.UI.Design.XmlFileEditor), typeof(UITypeEditor))]
public string XmlFile
{
    get
    {
        return xml_;
    }
    set
    {
        xml_ = value;
    }
}

private string xml_;
<EditorAttribute(GetType(System.Web.UI.Design.XmlFileEditor), GetType(UITypeEditor))>  _
Public Property XmlFile() As String
   Get
      Return xml_
   End Get
   Set
      xml_ = value
   End Set
End Property

Private xml_ As String

Keterangan

XmlFileEditor adalah UITypeEditor yang menyediakan dialog untuk memilih file XML untuk properti nama file.

Konstruktor

XmlFileEditor()

Menginisialisasi instans baru kelas XmlFileEditor.

Properti

IsDropDownResizable

Mendapatkan nilai yang menunjukkan apakah editor drop-down harus dapat diubah oleh pengguna.

(Diperoleh dari UITypeEditor)

Metode

EditValue(IServiceProvider, Object)

Mengedit nilai objek yang ditentukan menggunakan gaya editor yang ditunjukkan oleh GetEditStyle() metode .

(Diperoleh dari UITypeEditor)
EditValue(ITypeDescriptorContext, IServiceProvider, Object)

Mengedit nilai objek yang ditentukan menggunakan penyedia layanan dan konteks yang ditentukan.

Equals(Object)

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetEditStyle()

Mendapatkan gaya editor yang digunakan oleh EditValue(IServiceProvider, Object) metode .

(Diperoleh dari UITypeEditor)
GetEditStyle(ITypeDescriptorContext)

Mendapatkan gaya pengeditan yang terkait dengan editor ini, menggunakan objek yang ditentukan ITypeDescriptorContext .

GetHashCode()

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetPaintValueSupported()

Menunjukkan apakah editor ini mendukung pengecatan representasi nilai objek.

(Diperoleh dari UITypeEditor)
GetPaintValueSupported(ITypeDescriptorContext)

Menunjukkan apakah konteks yang ditentukan mendukung pengecatan representasi nilai objek dalam konteks yang ditentukan.

(Diperoleh dari UITypeEditor)
GetType()

Mendapatkan dari instans Type saat ini.

(Diperoleh dari Object)
MemberwiseClone()

Membuat salinan dangkal dari saat ini Object.

(Diperoleh dari Object)
PaintValue(Object, Graphics, Rectangle)

Melukis representasi nilai objek yang ditentukan ke kanvas yang ditentukan.

(Diperoleh dari UITypeEditor)
PaintValue(PaintValueEventArgs)

Melukis representasi nilai objek menggunakan yang ditentukan PaintValueEventArgs.

(Diperoleh dari UITypeEditor)
ToString()

Mengembalikan string yang mewakili objek saat ini.

(Diperoleh dari Object)

Berlaku untuk

Lihat juga