Click here to Skip to main content
15,879,010 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.4K   22.4K   161  
Class library to manage RTF files.
Librer�a NRtfTree v0.2.1

Sgoliver .NET: http://www.sgoliver.net

Sourceforge Project: http://nrtftree.sourceforge.net - http://sourceforge.net/projects/nrtftree


Versi�n 0.2.1 (10/12/2006)
--------------------------

- Bug en SaveRtf(). En los caracteres especiales a veces se escrib�an n�meros hexadecimales de un s�lo d�gito. Deben ser siempre dos.
  Ejemplo -->  Mal: \'1  --> Bien: \'01
- Modificada la url de la p�gina personal y las webs del proyecto.


Versi�n 0.2.0 (17/12/2005)
--------------------------

- Cambios generales:
	* Se ha distribuido el c�digo en dos espacios de nombres:
		- Net.Sgoliver.NRtfTree.Core --> Clases base
		- Net.Sgoliver.NRtfTree.Util --> Clases especializadas (ImageNode, ObjectNode, InfoGroup)

- Clase RtfTreeNode:
	* Nuevas propiedades: LastChild, NextSibling, PreviousSibling y Rtf.
	* Nuevos m�todos privados: getRtf() y getRtfInm() [Se han pasado desde RtfTree a RtfTreeNode].
	* Nuevos m�todos p�blicos: CloneNode(), HasChildNodes(), SelectSingleNode(), SelectSingleChildNode(), SelectChildNodes(), SelectNodes(), SelectSingleChildNodeType()
	* Cambiada la implementacion de la propiedad Rtf para usar StringBuilder.
	* Nuevo indizador para acceder a los nodos hijos. Tiene la misma funci�n que SelectSingleChildNode()

- Clase RtfTree:
	* Eliminados los m�todos privados getRtf() y getRtfInm() [Se han pasado desde RtfTree a RtfTreeNode]
	* Uitlizaci�n de StringBuilder en el m�todo toSringInm()
	* Nuevos m�todos p�blicos: ToStringEx(), SaveRtf(), GetColorTable() y GetFontTable() y GetInfoGroup().
	* Modificado el m�todo toStringInm() para a�adir el par�metro 'showNodeTypes'.
	* Se modifican los dos constructores para cerrar el stream despu�s de parsear el documento completo.

- Clase RtfNodeCollection:
	* Nuevos m�todos p�blicos: IndexOf(), AddRange()

- Clase RtfLex:
	* Utilizacion de StringBuilder en ParseText() y ParseKeyword().
	* Fusionados los dos constructores en uno s�lo que recibe un par�metro de tipo TextReader.
	* Modificado el m�todo parseText() para ignorar retornos de carro, tabuladores y caracteres nulos.

- Nueva clases ImageNode, ObjectNode, InfoGroup.


Versi�n 0.1
-----------

- Primera versi�n estable de la librer�a. Contiene tan s�lo las clases base.

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