DesignerActionUIService.Refresh(IComponent) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Memperbarui panel tag pintar.
public:
void Refresh(System::ComponentModel::IComponent ^ component);
public void Refresh(System.ComponentModel.IComponent component);
public void Refresh(System.ComponentModel.IComponent? component);
member this.Refresh : System.ComponentModel.IComponent -> unit
Public Sub Refresh (component As IComponent)
Parameter
- component
- IComponent
yang akan di-refresh IComponent .
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
Metode ini Refresh memperbarui internal DesignerActionGlyph, serta panel tag pintar.