Example #1
0
 public string WdGetText(int itemsNum, int subItemsNum)
 {
     if (this.InvokeRequired)
     {
         WdGetTextCallback d = new WdGetTextCallback(WdGetText);
         return((string)this.Invoke(d, new object[] { itemsNum, subItemsNum }));
     }
     else
     {
         return(this.Items[itemsNum].SubItems[subItemsNum].Text);
     }
 }
Example #2
0
 public string WdGetText()
 {
     if (this.InvokeRequired)
     {
         WdGetTextCallback d = new WdGetTextCallback(WdGetText);
         return((string)this.Invoke(d, new object[] { }));
     }
     else
     {
         return(this.Text);
     }
 }