예제 #1
0
        /// <summary>
        /// The GetText method extracts the next portion of text content from the document.
        /// </summary>
        /// <param name="maxLength"></param>
        /// <returns></returns>
        public string GetText(int maxLength)
        {
            Error_Control_Block ecb    = new Error_Control_Block();
            StringBuilder       buffer = new StringBuilder(maxLength);
            int retval = maxLength;

            Check(ISYS11df.IGR_Get_Text(NeedHandle(), buffer, ref retval, ref ecb), ecb);
            _eof = retval == 0;
            return(buffer.ToString().Substring(0, retval));
        }