SimpleShape.BackgroundImageChanged 事件
發生時BackgroundImage圖形的屬性變更。
命名空間: Microsoft.VisualBasic.PowerPacks
組件: Microsoft.VisualBasic.PowerPacks.Vs (在 Microsoft.VisualBasic.PowerPacks.Vs.dll 中)
語法
'宣告
<BrowsableAttribute(True)> _
Public Event BackgroundImageChanged As EventHandler
[BrowsableAttribute(true)]
public event EventHandler BackgroundImageChanged
[BrowsableAttribute(true)]
public:
event EventHandler^ BackgroundImageChanged {
void add (EventHandler^ value);
void remove (EventHandler^ value);
}
[<BrowsableAttribute(true)>]
member BackgroundImageChanged : IEvent<EventHandler,
EventArgs>
JScript 不支援事件。
備註
如果會引發這個事件BackgroundImage屬性變更時以程式設計方式修改或使用者互動。
如需如何處理事件的詳細資訊,請參閱處理和引發事件。
範例
下列範例顯示如何回應BackgroundImageChanged事件處理常式中的事件。 此範例中您需要RectangleShape名為 RectangleShape1 控制項和表單上名為 Label1 Label 控制項。
Private Sub RectangleShape1_BackgroundImageChanged(
) Handles RectangleShape1.BackgroundImageChanged
' Display a message in the Label.
Label1.Text = "The picture has changed."
End Sub
private void rectangleShape1_BackgroundImageChanged(object sender, System.EventArgs e)
{
// Display a message in the Label.
label1.Text = "The picture has changed.";
}
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。
請參閱
參考
Microsoft.VisualBasic.PowerPacks 命名空間
其他資源
Line 和 Shape 控制項簡介 (Visual Studio)