Example #1
0
        //------------------------------------------------------ 
        // 
        //  Internal Methods
        // 
        //-----------------------------------------------------

        #region Internal Methods
        /// <summary> 
        /// Get the glyph run at zero-based position 'position'.
        /// </summary> 
        /// <remarks> 
        /// Returns null for a nonexistent position. No exception raised.
        /// </remarks> 
        internal override GlyphRunInfo GlyphRunAtPosition(int position)
        {
            if (position < 0 || position >= GlyphRunList.Length)
            { 
                return null;
            } 
            if (GlyphRunList[position] == null) 
            {
                GlyphRunList[position] = new XmlGlyphRunInfo(NodeList[position]); 
            }
            return GlyphRunList[position];
        }
        //------------------------------------------------------
        //
        //  Internal Methods
        //
        //------------------------------------------------------

        #region Internal Methods
        /// <summary>
        /// Get the glyph run at zero-based position 'position'.
        /// </summary>
        /// <remarks>
        /// Returns null for a nonexistent position. No exception raised.
        /// </remarks>
        internal override GlyphRunInfo GlyphRunAtPosition(int position)
        {
            if (position < 0 || position >= GlyphRunList.Length)
            {
                return(null);
            }
            if (GlyphRunList[position] == null)
            {
                GlyphRunList[position] = new XmlGlyphRunInfo(NodeList[position]);
            }
            return(GlyphRunList[position]);
        }