Ejemplo n.º 1
0
 public void WdSetSize(Size size)               // Since SelectionStart exists, it was referred to as WdSelectionStart.
 {
     if (this.InvokeRequired)
     {
         WdSetSizeCallback d = new WdSetSizeCallback(WdSetSize);
         this.Invoke(d, new object[] { size });
     }
     else
     {
         this.Size = size;
     }
 }
Ejemplo n.º 2
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;
     }
 }