/// <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; }
void RenderInfoField(InfoField infoField) { RenderWord(GetDocumentInfo(infoField.Name)); }
/// <summary> /// Adds a new InfoField /// </summary> public void Add(InfoField infoField) { this.Elements.Add(infoField); }
FormatResult FormatInfoField(InfoField infoField) { string fieldValue = GetDocumentInfo(infoField.Name); if (fieldValue != "") return FormatWord(fieldValue); return FormatResult.Continue; }
internal InfoFieldRenderer(DocumentObject domObj, RtfDocumentRenderer docRenderer) : base(domObj, docRenderer) { this.infoField = domObj as InfoField; }