OnClickCreateHeaderFooter Event

[Top]  [Chapter]  [Previous]  [Next]

Member of WPDLLInt

Declaration C#

OnClickCreateHeaderFooter(Object Sender, int Editor, int Kind, ref int Range);

 

Declaration OCX

OnClickCreateHeaderFooter(ByVal Editor As Long, ByVal Kind As Long, Range As Long)

 

This event is triggered when the user clicks double into the top or buttom margin areas. You can use the variables Kind and Range if you want to create a new header or footer.

VB Example:

Private Sub WPDLLInt1_OnClickCreateHeaderFooter(ByVal Editor As Long, ByVal Kind As Long, Range As Long)

   If Kind = 1 Then

      WPDLLInt1.TextCursor.InputHeader Range, "", ""

   Else

      WPDLLInt1.TextCursor.InputFooter Range, "", ""

   End If

End Sub

Parameters

Kind

This variable is 1 for a header, 2 for a footer text.

Range

This variable contains the "suggested" range : all pages, odd, even, first page.

Category

Hader and Footer Support


[idh_wpdllint_onclickcreateheaderfooter.htm]    Copyright © 2007 by WPCubed GmbH