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); } }
public string WdGetText() { if (this.InvokeRequired) { WdGetTextCallback d = new WdGetTextCallback(WdGetText); return((string)this.Invoke(d, new object[] { })); } else { return(this.Text); } }