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

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