Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / PrintGetAlignment Method
Example





In This Topic
    PrintGetAlignment Method (GdPictureImaging)
    In This Topic
    Returns the value of an image alignment setting of the active printer. This value determines how the image is aligned when printing.
    Syntax
    'Declaration
     
    
    Public Function PrintGetAlignment() As PrintAlignment
    public PrintAlignment PrintGetAlignment()
    public function PrintGetAlignment(): PrintAlignment; 
    public function PrintGetAlignment() : PrintAlignment;
    public: PrintAlignment PrintGetAlignment(); 
    public:
    PrintAlignment PrintGetAlignment(); 

    Return Value

    A member of the PrintAlignment enumeration. The value of the image alignment property.
    Remarks
    It is recommend to use the GetStat method or the PrintGetStat method to identify the specific reason for the method's failure, if any.

    Just to remind you that the active printer is the printer identified by the PrintGetActivePrinter method or set by the PrintSetActivePrinter method and it is dedicated to executing all subsequent print jobs using this class as well as utilizing all by you altered printer settings.

    Example
    Showing basic printer settings on the screen.
    using (GdPictureImaging gdpictureImaging = new GdPictureImaging())
    {
        Console.WriteLine("Printer settings information:");
        Console.WriteLine("Image aligment: {0}", gdpictureImaging.PrintGetAlignment().ToString());
        Console.WriteLine("Number of copies: {0}", gdpictureImaging.PrintGetCopies().ToString());
        Console.WriteLine("Duplex mode: {0}", gdpictureImaging.PrintGetDuplexMode().ToString());
        Console.WriteLine("Will be printed document collated?: {0}", gdpictureImaging.PrintGetCollate().ToString());
    }
    See Also