コード例 #1
0
        // ----------------------- ScanWord_CalcStartBx ---------------------------
        // calc start position from which to start scan to the next word.
        private static TextLinesCursor ScanWord_CalcStartBx(
            TextLines InLines, TextLinesWordCursor InWord)
        {
            //      TextLinesNode linesNode = null;
            TextLinesCursor bx = null;

            switch (InWord.Position)
            {
            case RelativePosition.Begin:
                bx = InLines.PosBgn();
                break;

            case RelativePosition.Before:
                break;

            case RelativePosition.After:
                break;

            case RelativePosition.End:
                bx = InLines.PosEnd();
                break;

            case RelativePosition.None:
                break;

            case RelativePosition.At:
                break;

            default:
                break;
            }
            return(bx);
        }