C#從零開始_自學C#、Visual Studio實境秀 22/ Word操作再熟悉,GetActiveObject、static
dn.ActiveWindow.Visible = true;
dn.ActiveWindow.Activate();//要先激活再縮小放大才有效,若先縮小放大再激活就不會呈現在畫面上 視窗的放大縮小及取得焦點
dn.ActiveWindow.WindowState = WdWindowState.wdWindowStateMinimize;
dn.ActiveWindow.WindowState = Microsoft.Office.Interop.Word.WdWindowState.wdWindowStateMaximize;
dn.Application.Activate();
1:04:20 物件導向與部件組織的關係
4:35:00 Marshal.GetActiveObject Method (String)
The following example was run on a computer that was configured with a running instance of Microsoft Word. There were no instances of Microsoft Excel running.
5:14:25
7:08:00 Accessors 就是 get set 存取器 http://bit.ly/2sXMiQV
7:15:00 對 static 再了解! http://bit.ly/2szPGSw
留言