Пример #1
0
        /// <summary>
        /// The Text property returns all the text contained on the page.
        /// </summary>
        /// <returns></returns>
        public string GetText()
        {
            if (string.IsNullOrEmpty(_pageText))
            {
                Error_Control_Block ecb    = new Error_Control_Block();
                StringBuilder       buffer = new StringBuilder(4096);
                int bufferSize             = buffer.Capacity;

                while (ISYS11df.IGR_Get_Page_Text(Handle, buffer, ref bufferSize, ref ecb) == 0)
                {
                    _pageText += buffer.ToString(0, bufferSize);
                }
            }
            return(_pageText);
        }