bolIndent = false;
/// <summary>
/// 是否使用缩进
/// </summary>
/// <remarks>
/// RTF文档内部不能随便缩进,提供此选项只是用于生成便于阅读的RTF文档,便于
程序的调试,
/// 在开发调试中可以设置该属性为true,方便开发者能直接查看生成的RTF文档,但在生成最终运行的
///
程序时应当设置该属性为 false .
/// </remarks>
public bool Indent
{
get{ return bolIndent ;}
set{ bolIndent = value;}
}
private string strIndentString = " ";
/// <summary>
/// 缩进字符串
/// </summary>
public string IndentString
{
get{ return strIndentString ;}
set{ strIndentString = value;}
}
/// <summary>
/// 当前缩进层次
/// </summary>
private int intGroupLevel = 0 ;
/// <summary>
/// 关闭对象
/// </summary>
public void Close()
{
if(this.intGroupLevel > 0 )
throw new System.Exception("还有组未写完");
if( myWriter != null )
{
myWriter.Close();
myWriter = null;
}
}
/// <summary>
/// 输出一个组
/// </summary>
/// <param name="KeyWord">关键字</param>
public void WriteGroup( string KeyWord )
{
this.WriteStartGroup();
this.WriteKeyword( KeyWord );
this.Wri