Click here to Skip to main content
Click here to Skip to main content

RTF Document Constructor Library

By , 16 Aug 2010
 
using System;
using System.Collections.Generic;
using System.Text;

namespace ESCommon.Rtf
{
    /// <summary>
    /// Specifies control word.
    /// </summary>
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
    internal class RtfControlWordAttribute : Attribute
    {
        private string _name = String.Empty;
        private bool _isIndexed = false;

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

        /// <summary>
        /// Gets or sets a Boolean value indicating wheter the control word should be indexed when RtfWriter reflects an array.
        /// </summary>
        public bool IsIndexed
        {
            get { return _isIndexed; }
            set { _isIndexed = value; }
        }

        /// <summary>
        /// Initializes a new instance of ESCommon.Rtf.RtfControlWordAttribute class.
        /// </summary>
        internal RtfControlWordAttribute()
        {
            
        }

        /// <param name="name">Control word name.</param>
        internal RtfControlWordAttribute(string name)
        {
            _name = name;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of use 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)

About the Author

Dima Popov
Software Developer Energoservice
Russian Federation Russian Federation
Member
Dmitry lives in Arkhangelsk. He has developed C# applications for testing and configuring so-called IEDs since 2007.

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