HorizontalAlign Enum

Represents the horizontal alignment to use when printing pages.

public enum HorizontalAlign
Public Enum HorizontalAlign

Inheritance: ObjectValueTypeEnumHorizontalAlign

Fields

HorizontalAlign.Center2Center horizontal alignment.
HorizontalAlign.Left1Left horizontal alignment.
HorizontalAlign.Right3Right horizontal alignment.

Licensing Info

This enum is a DynamicPDF PrintManager feature. One of the following is required for non-evaluation usage:

Examples

The following examples creates a print job, sets the horizontal align to left and prints the job.

Imports System
Imports ceTe.DynamicPDF.Printing

Module MyModule

    Sub Main()

        ' Create a print job
        Dim MyPrintJob As PrintJob = New PrintJob("PrinterName", "C:\MyDocument.pdf")

        ' Set the horizontal alignment
        MyPrintJob.PrintOptions.HorizontalAlign = HorizontalAlign.Left

        ' Print the job
        MyPrintJob.Print()
    End Sub
End Module
using System;
using ceTe.DynamicPDF.Printing;

class MyClass
{
    static void Main()
    {
        // Create a print job
        PrintJob printJob = new PrintJob("PrinterName", @"C:\MyDocument.pdf");
  
        // Set the horizontal alignment
        printJob.PrintOptions.HorizontalAlign = HorizontalAlign.Left;

        // Print the job
        printJob.Print();
    }
}

See Also

ceTe.DynamicPDF.Printing

In this topic