예제 #1
0
 public void WdSetSize(Size size)               // Since SelectionStart exists, it was referred to as WdSelectionStart.
 {
     System.Windows.Forms.ToolStrip toolStrip = this.GetCurrentParent();
     if (toolStrip.InvokeRequired)
     {
         WdSetSizeCallback d = new WdSetSizeCallback(WdSetSize);
         toolStrip.Invoke(d, new object[] { size });
     }
     else
     {
         this.Size = size;
     }
 }
예제 #2
0
 public void WdEnable(bool flg)
 {
     System.Windows.Forms.ToolStrip toolStrip = this.GetCurrentParent();
     if (toolStrip.InvokeRequired)
     {
         WdEnableCallback d = new WdEnableCallback(WdEnable);
         toolStrip.Invoke(d, new object[] { flg });
     }
     else
     {
         this.Enabled = flg;
     }
 }