当前位置: 首页>>代码示例>>C#>>正文


C# IElementListener.Add方法代码示例

本文整理汇总了C#中IElementListener.Add方法的典型用法代码示例。如果您正苦于以下问题:C# IElementListener.Add方法的具体用法?C# IElementListener.Add怎么用?C# IElementListener.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IElementListener的用法示例。


在下文中一共展示了IElementListener.Add方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Create

 public static void Create(IElementListener document, int invoiceNumber, InvoiceEntity invoiceEntity, CompanyInformationEntity companyInformationEntity, DateTime now)
 {
     var table = new PdfPTable(2) { WidthPercentage = 100 };
     table.AddCell(GetCompanyNameAndSlogan(invoiceEntity, companyInformationEntity));
     table.AddCell(GetInvoiceTitle());
     table.AddCell(GetCompanyAddress(invoiceEntity, companyInformationEntity));
     table.AddCell(GetInvoiceDetails(invoiceNumber,now));
     document.Add(table);
 }
开发者ID:HardcoreSoftware,项目名称:iSecretary,代码行数:9,代码来源:HeaderFactory.cs

示例2: Process

 /**
 * Processes the element by adding it (or the different parts) to an
 * <CODE>ElementListener</CODE>.
 *
 * @param       listener        an <CODE>ElementListener</CODE>
 * @return <CODE>true</CODE> if the element was processed successfully
 */
 public override bool Process(IElementListener listener)
 {
     try {
         foreach (IElement element in ((Section)this.element)) {
             listener.Add(element);
         }
         return true;
     }
     catch (DocumentException) {
         return false;
     }
 }
开发者ID:bmictech,项目名称:iTextSharp,代码行数:19,代码来源:MarkedSection.cs

示例3: Process

 // implementation of the Element-methods
 /// <summary>
 /// Processes the element by adding it (or the different parts) to an
 /// IElementListener.
 /// </summary>
 /// <param name="listener">an IElementListener</param>
 /// <returns>true if the element was processed successfully</returns>
 public bool Process(IElementListener listener)
 {
     try {
         foreach (IElement ele in list) {
             listener.Add(ele);
         }
         return true;
     }
     catch (DocumentException) {
         return false;
     }
 }
开发者ID:jomamorales,项目名称:createPDF,代码行数:19,代码来源:List.cs

示例4: CreateSliceHeader

 /// <summary>
 /// Create the slice header
 /// </summary>
 /// <param name="doc">
 /// The <see cref="Document"/>
 /// </param>
 /// <param name="state">
 /// The current <see cref="HtmlRenderer.RendererState"/>
 /// </param>
 private void CreateSliceHeader(IElementListener doc, RendererState state)
 {
     Table headerTable = this.CreateSliceHeaderTable(state);
     PdfPTable table = CreatePdf(headerTable);
     if (table != null)
     {
         doc.Add(table);
         table.DeleteBodyRows();
     }
 }
开发者ID:alcardac,项目名称:SDMX_DATA_BROWSER,代码行数:19,代码来源:PdfRenderer.cs

示例5: Process

 // implementation of the Element-methods
 /// <summary>
 /// Processes the element by adding it (or the different parts) to an
 /// IElementListener.
 /// </summary>
 /// <param name="listener">the IElementListener</param>
 /// <returns>true if the element was processed successfully</returns>
 public bool Process(IElementListener listener)
 {
     try {
         foreach (IElement ele in this) {
             listener.Add(ele);
         }
         return true;
     }
     catch (DocumentException de) {
         de.GetType();
         return false;
     }
 }
开发者ID:hjgode,项目名称:iTextSharpCF,代码行数:20,代码来源:Section.cs

示例6: Process

 // implementation of the Element-methods
 /// <summary>
 /// Processes the element by adding it (or the different parts) to a
 /// IElementListener.
 /// </summary>
 /// <param name="listener">an IElementListener</param>
 /// <returns>true if the element was processed successfully</returns>
 public bool Process(IElementListener listener)
 {
     try {
         return listener.Add(this);
     }
     catch (DocumentException de) {
         de.GetType();
         return false;
     }
 }
开发者ID:hjgode,项目名称:iTextSharpCF,代码行数:17,代码来源:Row.cs


注:本文中的IElementListener.Add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。