PrintDocument for WinForms
PageConfigureScript プロパティ (C1PrintDocument)


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1PrintDocument クラス : PageConfigureScript プロパティ
Gets or sets the script that is executed when a new page is added to the document. This script executes after the page has been added to the C1PrintDocument.Pages collection but before it is resolved (i.e. when the content of the page has not been laid out yet).

This script should be used only to change the page layout. Do not use this script to change the page content, as it may cause errors.

シンタックス
'宣言
 
Public Property PageConfigureScript As System.String
'使用法
 
Dim instance As C1PrintDocument
Dim value As System.String
 
instance.PageConfigureScript = value
 
value = instance.PageConfigureScript
public System.string PageConfigureScript {get; set;}
解説

C1PrintDocument also fires the C1PrintDocument.PageConfigure event at this time.

The difference between events and scripts is that event handlers belong to the application code, while scripts belong to the document. Thus it is recommended that event handlers be used to perform tasks that implement the overall application logic but do not depend on the specific document being processed.

On the other hand, scripts should be used to perform tasks directly related to the document itself. Scripts attached to a document are executed regardless of the current application (e.g. when the document is regenerated after being loaded from file by a different program). (For example, a document might contain a script that changes the value of a field in that document when an error occurs.)

参照

C1PrintDocument クラス
C1PrintDocument メンバ