DesignerActionUIService Kelas

Definisi

Mengelola antarmuka pengguna (UI) untuk panel tag pintar. Kelas ini tidak dapat diwariskan.

public ref class DesignerActionUIService sealed : IDisposable
public sealed class DesignerActionUIService : IDisposable
type DesignerActionUIService = class
    interface IDisposable
Public NotInheritable Class DesignerActionUIService
Implements IDisposable
Warisan
DesignerActionUIService
Penerapan

Contoh

Contoh kode berikut menunjukkan cara menggunakan Refresh metode untuk memperbarui panel tag pintar. Contoh ini adalah bagian dari contoh yang lebih besar yang tersedia dalam DesignerActionService gambaran umum kelas.

// Boolean properties are automatically displayed with binary 
// UI (such as a checkbox).
public bool LockColors
{
    get
    {
        return colLabel.ColorLocked;
    }
    set
    {
        GetPropertyByName("ColorLocked").SetValue(colLabel, value);

        // Refresh the list.
        this.designerActionUISvc.Refresh(this.Component);
    }
}
'Boolean properties are automatically displayed with binary 
' UI (such as a checkbox).
Public Property LockColors() As Boolean
    Get
        Return colLabel.ColorLocked
    End Get
    Set(ByVal value As Boolean)
        GetPropertyByName("ColorLocked").SetValue(colLabel, value)

        ' Refresh the list.
        Me.designerActionUISvc.Refresh(Me.Component)
    End Set
End Property

Keterangan

Anda dapat mengontrol tampilan desainer ActionLists Anda dengan DesignerActionUIService kelas . DesignerActionUIService menyediakan antarmuka langsung untuk menampilkan item untuk setiap komponen, termasuk metode dan peristiwa berikut:

DesignerActionService Gunakan untuk mengelola koleksi yang DesignerActionList terkait dengan komponen Anda.

Metode

Dispose()

Merilis semua sumber daya yang DesignerActionUIService digunakan oleh kelas .

Equals(Object)

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetHashCode()

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetType()

Mendapatkan instans Type saat ini.

(Diperoleh dari Object)
HideUI(IComponent)

Menyembunyikan panel tag pintar untuk komponen.

MemberwiseClone()

Membuat salinan dangkal dari yang saat ini Object.

(Diperoleh dari Object)
Refresh(IComponent)

Updates panel tag pintar.

ShouldAutoShow(IComponent)

Menunjukkan apakah akan secara otomatis menampilkan panel tag pintar.

ShowUI(IComponent)

Menampilkan panel tag pintar untuk komponen.

ToString()

Mengembalikan string yang mewakili objek saat ini.

(Diperoleh dari Object)

Acara

DesignerActionUIStateChange

Terjadi ketika permintaan dibuat untuk menampilkan atau menyembunyikan panel tag pintar.

Berlaku untuk

Lihat juga