RtfDomParser.RTFColorTable.Write C# (CSharp) Method

Write() public method

�����ɫ��
public Write ( RTFWriter writer ) : void
writer RTFWriter RTF�ĵ���д��
return void
        public void Write( RTFWriter writer )
        {
            writer.WriteStartGroup();
            writer.WriteKeyword( RTFConsts._colortbl );
            writer.WriteRaw(";");
            for( int iCount = 0 ; iCount < myItems.Count ; iCount ++ )
            {
                System.Drawing.Color c = ( System.Drawing.Color ) myItems[ iCount ] ;
                writer.WriteKeyword( "red" + c.R );
                writer.WriteKeyword( "green" + c.G );
                writer.WriteKeyword( "blue" + c.B );
                writer.WriteRaw(";");
            }
            writer.WriteEndGroup();
        }