PrintDocument for WinForms | ComponentOne
C1.PrintDocument.8 Assembly / C1.C1Preview Namespace / RenderShapeBase Class / ObjectResolvingScript Property

In This Topic
    ObjectResolvingScript Property (RenderShapeBase)
    In This Topic
    Gets or sets the script that is executed before resolving the current object.
    Syntax
    'Declaration
     
    Public Property ObjectResolvingScript As String
    public string ObjectResolvingScript {get; set;}
    Remarks
    This script may be used to adjust all properties of an object before resolving. For example the following code adds an empty page to the document if it contains an even number of pages prior to resolving the current object: RenderEmpty re = new RenderEmpty(); re.ObjectResolvingScript = "if Document.Pages.Count mod 2 <> 0 then\r\n" + "Dim lc As LayoutChangeNewPage = New LayoutChangeNewPage()\r\n" + "lc.PageLayout = New PageLayout()\r\n" + "lc.PageLayout.PageFooter = New RenderEmpty()\r\n" + "RenderObject.LayoutChangeAfter = lc\r\n" + "end if";
    See Also