Click here to Skip to main content
15,860,972 members
Articles / Programming Languages / C#

RTF Document Constructor Library

Rate me:
Please Sign up or sign in to vote.
4.95/5 (57 votes)
16 Aug 2010CPOL4 min read 209.2K   5.2K   106  
Create Rich Text Format documents programatically.
using System;
using System.Collections.Generic;
using System.Text;

namespace ESCommon.Rtf
{
    /// <summary>
    /// Specifies control word which is added to RTF document after RtfWriter reflects all the members of a class.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
    internal class RtfControlWordDenotingEndAttribute : Attribute
    {
        private string _name = String.Empty;

        /// <summary>
        /// Gets control word name.
        /// </summary>
        internal string Name
        {
            get { return _name; }
        }

        /// <summary>
        /// Initializes a new instance of ESCommon.Rtf.RtfControlWordDenotingEndAttribute class.
        /// </summary>
        /// <param name="name">Control word name.</param>
        internal RtfControlWordDenotingEndAttribute(string name)
        {
            _name = name;
        }
    }
}

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 Code Project Open License (CPOL)


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

Comments and Discussions