Click here to Skip to main content
15,887,214 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 478.2K   22.4K   161  
Class library to manage RTF files.
/*****************************************************************************
* Clase:		RtfToken
* Autor:		Sgoliver
* Fecha:		13/03/2005
* Descripci�n:	Token leido por el analizador l�xico para documentos RTF
* ***************************************************************************/

using System;

namespace Net.Sgoliver.NRtfTree
{
	/// <summary>
	/// Token leido por el analizador l�xico para documentos RTF.
	/// </summary>
	public class RtfToken
	{
		#region Atributos P�blicos

		/// <summary>
		/// Tipo del token.
		/// </summary>
		public TOKEN_TYPE	type;
		/// <summary>
		/// Palabra clave / S�mbolo de control / Caracter.
		/// </summary>
		public string		key;
		/// <summary>
		/// Indica si el token tiene par�metro asociado.
		/// </summary>
		public bool			hasParam;
		/// <summary>
		/// Par�metro de la palabra clave o s�mbolo de control.
		/// </summary>
		public int			param;

		#endregion

		#region Constructor P�blico

		/// <summary>
		/// Constructor de la clase RtfToken. Crea un token vac�o.
		/// </summary>
		public RtfToken()
		{
			type		= TOKEN_TYPE.NONE;
			key			= "";
			hasParam	= false;
			param		= 0;
		}

		#endregion
	}
}

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