DesignerActionUIService.Refresh(IComponent) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Frissíti az intelligens címkepanelt.
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)
Paraméterek
- component
- IComponent
A IComponent frissíteni kívánt.
Példák
Az alábbi példakód bemutatja, hogyan lehet a Refresh módszerrel frissíteni egy intelligens címkepanelt. Ez a példa egy nagyobb, az DesignerActionService osztály áttekintésében elérhető példa része.
// 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
Megjegyzések
A Refresh metódus frissíti a belső DesignerActionGlyphés az intelligens címkepanelt is.