WindowEventArgs Arabirim
Bilgileri sağlayan ActivateEvent, Deactivate, ve WindowSize olayları.
Ad alanı: Microsoft.Office.Tools.Word
Derleme: Microsoft.Office.Tools.Word (Microsoft.Office.Tools.Word.dll içinde)
Sözdizimi
'Bildirim
<GuidAttribute("767d9ec0-c72c-4f66-892b-be4a4b20eba3")> _
Public Interface WindowEventArgs
[GuidAttribute("767d9ec0-c72c-4f66-892b-be4a4b20eba3")]
public interface WindowEventArgs
WindowEventArgs türü aşağıdaki üyeleri ortaya koyar.
Özellikler
Ad | Açıklama | |
---|---|---|
![]() |
Window | Tarafından dikkate pencere alır ActivateEvent, Deactivate, ve WindowSize yöntemleri. |
Üst
Örnekler
Aşağıdaki kod örneği için bir olay işleyicisi oluşturur WindowSize olay. Olay işleyicisi pencere baþlýðýnýn pencere yeniden boyutlandırılamaz sayısını görüntüler.
Bu örnek, bir belge düzeyinde özelleştirme için bulunur.
Private resizeCount As Integer = 0
Private Sub DocumentWindowSize()
AddHandler Me.WindowSize, AddressOf ThisDocument_WindowSize
End Sub
Private Sub ThisDocument_WindowSize(ByVal sender As Object, ByVal e As Microsoft.Office.Tools.Word.WindowEventArgs)
resizeCount += 1
e.Window.Caption = "Window resized " & resizeCount.ToString() & " times."
End Sub
int resizeCount = 0;
private void DocumentWindowSize()
{
this.WindowSize +=
new Microsoft.Office.Tools.Word.WindowEventHandler(
ThisDocument_WindowSize);
}
void ThisDocument_WindowSize(object sender,
Microsoft.Office.Tools.Word.WindowEventArgs e)
{
resizeCount++;
e.Window.Caption = "Window resized " +
resizeCount.ToString() + " times.";
}