本文整理汇总了C#中Infragistics.AddHeader方法的典型用法代码示例。如果您正苦于以下问题:C# Infragistics.AddHeader方法的具体用法?C# Infragistics.AddHeader怎么用?C# Infragistics.AddHeader使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Infragistics
的用法示例。
在下文中一共展示了Infragistics.AddHeader方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: formatPage
private Infragistics.Documents.Reports.Report.Section.ISection formatPage(Infragistics.Documents.Reports.Report.Section.ISection s1)
{
//sets properties on the section
//to add page numbers
s1.PageNumbering.SkipFirst = true;
s1.PageNumbering.OffsetY = -18;
s1.PageNumbering.Template = "Page [Page #] of [TotalPages]";
//adds a header to the PDF
Infragistics.Documents.Reports.Report.Section.ISectionHeader s1header = s1.AddHeader();
s1header.Height = 20;
s1header.Repeat = false;
//adds text to the header area
Infragistics.Documents.Reports.Report.Text.IText s1headertitle = s1header.AddText(0, 0);
s1headertitle.AddContent("Logic University :" + drdReportList.SelectedItem.ToString());
s1headertitle.Alignment = TextAlignment.Left;
Infragistics.Documents.Reports.Report.Text.IText s1headertimestamp = s1header.AddText(0, 0);
s1headertimestamp.AddContent("Generated on: ");
s1headertimestamp.AddDateTime("MM/dd/yyyy hh:mm:ss");
s1headertimestamp.Alignment = TextAlignment.Right;
return s1;
}