/// <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;
 }
Example #2
0
 void RenderInfoField(InfoField infoField)
 {
   RenderWord(GetDocumentInfo(infoField.Name));
 }
Example #3
0
 /// <summary>
 /// Adds a new InfoField
 /// </summary>
 public void Add(InfoField infoField)
 {
   this.Elements.Add(infoField);
 }
Example #4
0
    FormatResult FormatInfoField(InfoField infoField)
    {
      string fieldValue = GetDocumentInfo(infoField.Name);
      if (fieldValue != "")
        return FormatWord(fieldValue);

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