Click here to Skip to main content
15,881,281 members
Articles / Programming Languages / C#

NRTFTree - A class library for RTF processing in C#

Rate me:
Please Sign up or sign in to vote.
4.50/5 (42 votes)
7 Sep 2007LGPL33 min read 477.6K   22.4K   161  
Class library to manage RTF files.
/*****************************************************************************
* Clase:		RtfNodeCollection
* Autor:		Sgoliver
* Fecha:		13/03/2005
* Descripci�n:	Colecci�n de nodos de un documento RTF
* ***************************************************************************/

using System;
using System.Collections;

namespace Net.Sgoliver.NRtfTree
{
	/// <summary>
	/// Colecci�n de nodos de un documento RTF.
	/// </summary>
	public class RtfNodeCollection : CollectionBase
	{
		/// <summary>
		/// A�ade un nuevo nodo a la colecci�n actual.
		/// </summary>
		/// <param name="node">Nuevo nodo a a�adir.</param>
		/// <returns>Posici�n en la que se ha insertado el nuevo nodo.</returns>
		public int Add(RtfTreeNode node)
		{
			List.Add(node);

			return (List.Count - 1);
		}

		/// <summary>
		/// Indizador de la clase RtfNodeCollection. 
		/// Devuelve el nodo que ocupa la posici�n 'index' dentro de la colecci�n.
		/// </summary>
		public RtfTreeNode this[int index]
		{
			get
			{
				return (RtfTreeNode)List[index];
			}
			set
			{
				List[index] = value;
			}
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


Written By
Web Developer
Spain Spain
Currently, i work for a great consulting company as a software developer.

My homepage is:
http://www.sgoliver.net

Comments and Discussions