LinkBase.CreateDetailFooterArea Event
Occurs when a detail footer section of the document is being generated.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v22.1.Core.dll
Declaration
Event Data
The CreateDetailFooterArea event's data class is CreateAreaEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Graph | Gets a BrickGraphics object used to draw in the current report. |
Remarks
Handle the CreateDetailFooterArea event to customize the detail footer section of a document.
The document creation events occur in the following order:
- LinkBase.CreateMarginalHeaderArea
- LinkBase.CreateMarginalFooterArea
- LinkBase.CreateInnerPageHeaderArea
- LinkBase.CreateInnerPageFooterArea
- LinkBase.CreateReportHeaderArea
- LinkBase.CreateDetailHeaderArea
- LinkBase.CreateDetailArea
- CreateDetailFooterArea
- LinkBase.CreateReportFooterArea
Note
This order may be different in descendants of the LinkBase class.
For more information on handling events, see Events and Delegates in MSDN.
Example
The following example demonstrates how to write a LinkBase.CreateDetailFooterArea
event handler.
void link1_CreateDetailFooterArea(object sender, CreateAreaEventArgs e) {
string s = "I am the Detail Footer Area";
e.Graph.StringFormat = new BrickStringFormat(StringAlignment.Center, StringAlignment.Center);
e.Graph.Font = new Font("Comic Sans MS", 10);
e.Graph.BackColor = Color.DarkGreen;
e.Graph.ForeColor = Color.DarkKhaki;
SizeF sz = e.Graph.MeasureString(s);
sz.Width += 2;
RectangleF r = new RectangleF(new PointF(0, 0), sz);
e.Graph.DrawString(s, r);
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateDetailFooterArea event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.