Ejemplo n.º 1
0
        /// <summary>
        /// Return the writing system of the character at the specified offset in the source.
        /// </summary>
        static int WsInSource(int ich, IVwTextSource source)
        {
            LgCharRenderProps chrp;
            int ichMin, ichLim;

            source.GetCharProps(ich, out chrp, out ichMin, out ichLim);
            return(chrp.ws);
        }
Ejemplo n.º 2
0
        private int GetLimInSameWs(int ichMin, IVwTextSource source, int ichLimBacktrack)
        {
            LgCharRenderProps chrpThis;
            int ichMinRun, ichLimWs;

            source.GetCharProps(ichMin, out chrpThis, out ichMinRun, out ichLimWs);
            while (ichLimWs < ichLimBacktrack)
            {
                int ichLimRunNext;
                LgCharRenderProps chrpNext;
                source.GetCharProps(ichMinRun, out chrpNext, out ichMinRun, out ichLimRunNext);
                if (chrpNext.ws != chrpThis.ws)
                {
                    break;
                }
                ichLimWs  = ichLimRunNext;
                ichMinRun = ichLimRunNext;
            }
            return(ichLimWs);
        }
Ejemplo n.º 3
0
		/// <summary>
		/// Return the writing system of the character at the specified offset in the source.
		/// </summary>
		static int WsInSource(int ich, IVwTextSource source)
		{
			LgCharRenderProps chrp;
			int ichMin, ichLim;
			source.GetCharProps(ich, out chrp, out ichMin, out ichLim);
			return chrp.ws;
		}