/// <summary>
 /// Adds a new InfoField with the given type.
 /// </summary>
 public InfoField AddInfoField(InfoFieldType iType)
 {
   InfoField fieldInfo = new InfoField();
   fieldInfo.Name = iType.ToString();
   this.Add(fieldInfo);
   return fieldInfo;
 }
示例#2
0
 void RenderInfoField(InfoField infoField)
 {
   RenderWord(GetDocumentInfo(infoField.Name));
 }
示例#3
0
 /// <summary>
 /// Adds a new InfoField
 /// </summary>
 public void Add(InfoField infoField)
 {
   this.Elements.Add(infoField);
 }
示例#4
0
    FormatResult FormatInfoField(InfoField infoField)
    {
      string fieldValue = GetDocumentInfo(infoField.Name);
      if (fieldValue != "")
        return FormatWord(fieldValue);

      return FormatResult.Continue;
    }
示例#5
0
 internal InfoFieldRenderer(DocumentObject domObj, RtfDocumentRenderer docRenderer)
     : base(domObj, docRenderer)
 {
     this.infoField = domObj as InfoField;
 }