RtfDomParser.RTFWriter.WriteEndGroup C# (CSharp) Method

WriteEndGroup() public method

end write group
public WriteEndGroup ( ) : void
return void
        public void WriteEndGroup()
        {
            intGroupLevel--;
            if (intGroupLevel < 0)
            {
                throw new System.Exception("group level error");
            }
            if (bolIndent)
            {
                InnerWriteNewLine();
                InnerWrite("}");
            }
            else
            {
                InnerWrite("}");
            }
        }

Usage Example

Esempio n. 1
0
        public void Write(RTFWriter writer)
        {
            writer.WriteStartGroup( );
            writer.WriteKeyword("info");
            foreach (string strKey in myInfo.Keys)
            {
                writer.WriteStartGroup();
                if (strKey == "edmins" ||
                    strKey == "vern" ||
                    strKey == "nofpages" ||
                    strKey == "nofwords" ||
                    strKey == "nofchars" ||
                    strKey == "nofcharsws" ||
                    strKey == "id")
                {
                    writer.WriteKeyword(strKey + myInfo[strKey]);
                }
                else
                {
                    writer.WriteKeyword(strKey);
                    writer.WriteText(myInfo[strKey]);
                }
                writer.WriteEndGroup();
            }
            writer.WriteStartGroup();

            WriteTime(writer, "creatim", dtmCreatim);
            WriteTime(writer, "revtim", dtmRevtim);
            WriteTime(writer, "printim", dtmPrintim);
            WriteTime(writer, "buptim", dtmBuptim);

            writer.WriteEndGroup();
        }
All Usage Examples Of RtfDomParser.RTFWriter::WriteEndGroup