/// <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;
 }