C# Example

private void CaptureFullText(int x, int y)
 {
            IUIControl spUIC = new UIControlClass();

            spUIC.CreateFromScreenPoint(x, y);
            string strRes = spUIC.Value;
            if (strRes == string.Empty)
            {
                strRes = spUIC.Name;
            }
            clickedWordTxt.Text = strRes;
 }

Comments