Click here to Skip to main content
11,635,123 members (74,773 online)
Click here to Skip to main content
Add your own
alternative version

RTF Document Constructor Library

, 16 Aug 2010 CPOL 77.7K 2.8K 93
Create Rich Text Format documents programatically.
using System;
using System.Text;
using System.Reflection;
using System.Collections;
using System.IO;

namespace ESCommon.Rtf
    internal static class RtfDocumentInfo
        private static ArrayList 
            attributeInfoItems = new ArrayList(),
            typeInfoItems = new ArrayList();

        internal static RtfAttributeInfo GetAttributeInfo(MemberInfo memberInfo)
            foreach (RtfAttributeInfo item in attributeInfoItems)
                if (item.MemberInfo == memberInfo)
                    return item;

            RtfAttributeInfo info = new RtfAttributeInfo(memberInfo);

            return info;

        internal static MemberInfo[] GetTypeMembers(Type type)
            foreach (RtfTypeInfo item in typeInfoItems)
                if (item.Type == type)
                    return item.Members;
            RtfTypeInfo info = new RtfTypeInfo(type);

            return info.Members;

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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Dima Popov
Software Developer Energoservice
Russian Federation Russian Federation
Dmitry lives in Arkhangelsk, Russia. He has developed C# applications since 2007.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.150728.1 | Last Updated 16 Aug 2010
Article Copyright 2010 by Dima Popov
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid