Ejemplo n.º 1
0
        /// <summary>
        /// Gets a subset of the paragraphs elements.
        /// </summary>
        /// <param name="startIdx">Start index of the required subset.</param>
        /// <param name="endIdx">End index of the required subset.</param>
        /// <returns>A ParagraphElements object with cloned elements.</returns>
        private ParagraphElements SubsetElements(int startIdx, int endIdx)
        {
            ParagraphElements paragraphElements = new ParagraphElements();

            for (int idx = startIdx; idx <= endIdx; ++idx)
            {
                paragraphElements.Add((DocumentObject)this.elements[idx].Clone());
            }
            return(paragraphElements);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Gets a subset of the paragraphs elements.
 /// </summary>
 /// <param name="startIdx">Start index of the required subset.</param>
 /// <param name="endIdx">End index of the required subset.</param>
 /// <returns>A ParagraphElements object with cloned elements.</returns>
 private ParagraphElements SubsetElements(int startIdx, int endIdx)
 {
   ParagraphElements paragraphElements = new ParagraphElements();
   for (int idx = startIdx; idx <= endIdx; ++idx)
   {
     paragraphElements.Add((DocumentObject)this.elements[idx].Clone());
   }
   return paragraphElements;
 }