本文整理汇总了C#中Page.AddCB_MM方法的典型用法代码示例。如果您正苦于以下问题:C# Page.AddCB_MM方法的具体用法?C# Page.AddCB_MM怎么用?C# Page.AddCB_MM使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Page
的用法示例。
在下文中一共展示了Page.AddCB_MM方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: InsertSectionHeader
// Inserts the given text as a section header (16-pt, bold).
private double InsertSectionHeader(FontDef fontDefinition, Page page, double verticalMillimeters, string text)
{
FontProp font = new FontProp(fontDefinition, 0.0D);
font.rSizePoint = 16.0D;
font.bBold = true;
page.AddCB_MM(verticalMillimeters + font.rSizeMM, new RepString(font, text));
return 2.0D * font.rSizeMM;
}
示例2: InsertTitle
// Inserts the title and company text on the given page.
private double InsertTitle(FontDef fontDefinition, Page page, double verticalMillimeters)
{
FontProp titleFont = new FontProp(fontDefinition, 0.0D);
FontProp companyFont = new FontProp(fontDefinition, 0.0D);
titleFont.rSizePoint = 20.0D;
companyFont.rSizePoint = 14.0D;
titleFont.bBold = true;
companyFont.bBold = true;
// Title
page.AddCB_MM(verticalMillimeters + titleFont.rSizeMM, new RepString(titleFont, m_titleText));
verticalMillimeters += 1.5D * titleFont.rSizeMM;
// Company
page.AddCB_MM(verticalMillimeters + companyFont.rSizeMM, new RepString(companyFont, m_companyText));
return (1.5D * titleFont.rSizeMM) + companyFont.rSizeMM;
}
示例3: InsertReportDate
// Inserts the report date onto the given page.
private double InsertReportDate(FontDef fontDefinition, Page page, double verticalMillimeters)
{
FontProp font = new FontProp(fontDefinition, 0.0D);
font.rSizePoint = 14.0D;
page.AddCB_MM(verticalMillimeters + font.rSizeMM, new RepString(font, m_reportDate.ToLongDateString()));
return font.rSizeMM;
}