ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

PrintInfo.PageFooterStyle Property

Gets or sets the style used to render the page footer.

[Visual Basic]

Public Property PageFooterStyle As C1.Win.C1TrueDBGrid.Style

[C#]

public C1.Win.C1TrueDBGrid.Style PageFooterStyle {get;set;}

[Delphi]

public property PageFooterStyle: C1.Win.C1TrueDBGrid.Style read get_PageFooterStyle write set_PageFooterStyle;

Example

The following example sets the style for the page footer:

·      Visual Basic

       Dim fntFont As Font

       fntFont = New Font(Me.C1TrueDBGrid1.PrintInfo.PageFooterStyle.Font.Name, Me.C1TrueDBGrid1.PrintInfo.PageFooterStyle.Font.Size, FontStyle.Italic)

       Me.C1TrueDBGrid1.PrintInfo.PageFooterStyle.Font = fntFont

       ' Display page numbers (centered).

       Me.C1TrueDBGrid1.PrintInfo.PageFooter = "Page: \p"

       ' Invoke print preview.

       Me.C1TrueDBGrid1.PrintInfo.PrintPreview()

·      C#

       Font fntFont;

       fntFont = new Font(this.c1TrueDBGrid1.PrintInfo.PageFooterStyle.Font.Name, this.c1TrueDBGrid1.PrintInfo.PageFooterStyle.Font.Size, FontStyle.Italic);

       this.c1TrueDBGrid1.PrintInfo.PageFooterStyle.Font = fntFont;

       // Display page numbers (centered).

       this.c1TrueDBGrid1.PrintInfo.PageFooter = "Page: \\p";

       // Invoke print preview.

       this.c1TrueDBGrid1.PrintInfo.PrintPreview();

·      Delphi

       var

         fntFont: Font;

       begin

         fntFont := Font.Create;

         Font(Self.C1TrueDBGrid1.PrintInfo.PageFooterStyle.Font.Name, Self.C1TrueDBGrid1.PrintInfo.PageFooterStyle.Font.Size, FontStyle.Italic);

         Self.C1TrueDBGrid1.PrintInfo.PageFooterStyle.Font := fntFont;

         // Display page numbers (centered).

         Self.C1TrueDBGrid1.PrintInfo.PageFooter := 'Page: \\p';

         // Invoke print preview.

         Self.C1TrueDBGrid1.PrintInfo.PrintPreview;

       end;

See Also

PrintInfo Class | PrintInfo Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.