Bagikan melalui


AnchorEditor Kelas

Definisi

Penting

API ini bukan kompatibel CLS.

Menyediakan antarmuka pengguna untuk mengonfigurasi Anchor properti.

public ref class AnchorEditor sealed : System::Drawing::Design::UITypeEditor
public sealed class AnchorEditor : System.Drawing.Design.UITypeEditor
[System.CLSCompliant(false)]
public sealed class AnchorEditor : System.Drawing.Design.UITypeEditor
type AnchorEditor = class
    inherit UITypeEditor
[<System.CLSCompliant(false)>]
type AnchorEditor = class
    inherit UITypeEditor
Public NotInheritable Class AnchorEditor
Inherits UITypeEditor
Warisan
AnchorEditor
Atribut

Contoh

Contoh kode berikut menggunakan EditorAttribute untuk mengaitkan AnchorEditor dengan properti .

public:
   [EditorAttribute(System::ComponentModel::Design::CollectionEditor::typeid,
      System::Drawing::Design::UITypeEditor::typeid)]
   property System::Windows::Forms::AnchorStyles testAnchor 
   {
      System::Windows::Forms::AnchorStyles get()
      {
         return anchor;
      }
      void set( System::Windows::Forms::AnchorStyles value )
      {
         anchor = value;
      }
   }
private:
   AnchorStyles anchor;
[EditorAttribute(typeof(System.Windows.Forms.Design.AnchorEditor), typeof(System.Drawing.Design.UITypeEditor))]
public System.Windows.Forms.AnchorStyles testAnchor
{
    get
    {
        return anchor;
    }
    set
    {
        anchor = value;
    }
}
private AnchorStyles anchor;
<EditorAttribute(GetType(System.Windows.Forms.Design.AnchorEditor), GetType(System.Drawing.Design.UITypeEditor))>  _
Public Property testAnchor() As System.Windows.Forms.AnchorStyles
   Get
      Return anchor
   End Get
   Set
      anchor = value
   End Set
End Property
Private anchor As AnchorStyles

Keterangan

menyediakan AnchorEditor antarmuka pengguna waktu desain untuk mengonfigurasi Anchor properti. Properti Anchor biasanya digunakan untuk menentukan sisi kontainer mana yang terikat dengan kontrol. Kelas ini menyediakan kontrol grafis drop-down yang memungkinkan pengguna menentukan sisi kontainer mana yang akan di jangkar kontrol.

Konstruktor

Nama Deskripsi
AnchorEditor()

Menginisialisasi instans baru dari kelas AnchorEditor.

Properti

Nama Deskripsi
IsDropDownResizable

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

(Diperoleh dari UITypeEditor)

Metode

Nama Deskripsi
EditValue(IServiceProvider, Object)

Mengedit nilai objek yang ditentukan menggunakan gaya editor yang ditunjukkan GetEditStyle() oleh 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 editor yang digunakan oleh EditValue(ITypeDescriptorContext, IServiceProvider, Object) metode .

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 Type instans saat ini.

(Diperoleh dari Object)
MemberwiseClone()

Membuat salinan dangkal dari Objectsaat ini.

(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