corelibraries-devexpress-dot-xtraprinting-dot-linkbase-f3ed311f.md
Occurs when a detail footer section of the document is being generated.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public virtual event CreateAreaEventHandler CreateDetailFooterArea
Public Overridable Event CreateDetailFooterArea As CreateAreaEventHandler
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. |
Handle the CreateDetailFooterArea event to customize the detail footer section of a document.
The document creation events occur in the following order:
Note
This order may be different in descendants of the LinkBase class.
For more information on handling events, see Events and Delegates in MSDN.
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 DXFont("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);
}
Private Sub link1_CreateDetailFooterArea(ByVal sender As Object, ByVal e As CreateAreaEventArgs)
Handles link1.CreateDetailFooterArea
Dim s As String = "I am the Detail Footer Area"
e.Graph.StringFormat = New BrickStringFormat(StringAlignment.Center, StringAlignment.Center)
e.Graph.Font = New DXFont("Comic Sans MS", 10)
e.Graph.BackColor = Color.DarkGreen
e.Graph.ForeColor = Color.DarkKhaki
Dim sz As SizeF = e.Graph.MeasureString(s)
sz.Width += 2
Dim r As RectangleF = New RectangleF(New PointF(0, 0), sz)
e.Graph.DrawString(s, r)
End Sub
See Also