AutoLayout

Represents an AutoLayout class.

public class AutoLayout
Public Class AutoLayout

Inheritance: ObjectAutoLayout

Licensing Info

This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

The following example shows auto layout placement.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
     
Module MyModule
     		
    Sub Main()
     	
        ' Create an Auto Layout
        Dim MyAutoLayout As AutoLayout = New AutoLayout(PageSize.A4, PageOrientation.Portrait, 50)

        ' Create a Text Area
        Dim label As TextArea = MyAutoLayout.AddText("TextArea Page Element:")
        label.TextColor = RgbColor.Red

        ' Create the string and Text Area
        Dim variableText As String = ""
        Dim i As Int32
        For i = 0 To 100
            variableText += "This is a sentence that I will use as my variable length text " + i.ToString() + ". "
        Next
        Dim MyTextArea As TextArea = MyAutoLayout.AddText(variableText)
        MyTextArea.Font = Font.TimesRoman

        ' Call GetDocument method from autoLayout object to get the document
        Dim document As Document = group.GetDocument()
     
        ' Save the PDF
        MyDocument.Draw("C:\MyDocument.pdf")
     		
    End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;

public class Example
{
    public static void CreatePDF(string outputPath)
    {
        // Create an Auto Layout
        AutoLayout autoLayout = new AutoLayout(PageSize.A4, PageOrientation.Portrait, 50);

        // Create a Text Area
        TextArea label = autoLayout.AddText("TextArea Page Element:");
        label.TextColor = RgbColor.Red;

        // Create the string and Text Area
        string variableText = "";
        for (int i = 0; i < 100; i++)
            variableText += "This is a sentence that I will use as my variable length text " + i + ". ";
        TextArea textArea = autoLayout.AddText(variableText);
        textArea.Font = Font.TimesRoman;

        // Call GetDocument method from autoLayout object to get the document
        Document document = autoLayout.GetDocument();

        // Save the PDF
        document.Draw(outputPath);
    }
}

Constructors

AutoLayout()Initializes a new instance of the AutoLayout class.
AutoLayout(PageDimensions)Initializes a new instance of the AutoLayout class.
AutoLayout(PageSize, PageOrientation, Single)Initializes a new instance of the AutoLayout class.
AutoLayout(Single, Single, Single)Initializes a new instance of the AutoLayout class.

Properties

ElementsGets the list of page element.
PaddingGets or sets the default padding.

Methods

AddAustraliaPost(String, [Optional] Boolean, Single?)Adds an AustraliaPost to the AutoLayout .
AddAutoCheckBox(String, Single, Single, String, [Optional] Boolean, Single?)Adds an AutoCheckBox to the AutoLayout .
AddAutoLink(String, Action, [Optional] Boolean, Single?)Adds an AutoLink to the AutoLayout .
AddAutoRadioButton(String, Single, Single, String, [Optional] Boolean, Single?)Adds an AutoRadioButton to the AutoLayout .
AddAztec(Byte[], AztecSymbolSize, [Optional] Boolean, Single?)Adds an Aztec to the AutoLayout .
AddAztec(String, AztecSymbolSize, [Optional] Boolean, Single?)Adds an Aztec to the AutoLayout .
AddButton(String, Single, Single, [Optional] Boolean, Single?)Adds a Button to the AutoLayout .
AddChart(Single, Single, [Optional] Boolean, Single?)Adds a Chart to the AutoLayout .
AddChart(Single, Single, Color, [Optional] Boolean, Single?)Adds a Chart to the AutoLayout .
AddCircle(Single, [Optional] Boolean, Single?)Adds a Circle to the AutoLayout .
AddCircle(Single, Single, [Optional] Boolean, Single?)Adds a Circle to the AutoLayout .
AddCodabar(String, Single, [Optional] Boolean, Single?)Adds a Codabar to the AutoLayout .
AddCode11(String, Single, [Optional] Boolean, Single?)Adds a Code11 to the AutoLayout .
AddCode128(String, Single, [Optional] Boolean, Single?)Adds a Code128 to the AutoLayout .
AddCode25(String, Single, [Optional] Boolean, Single?)Adds a Code25 to the AutoLayout .
AddCode39(String, Single, [Optional] Boolean, Single?)Adds a Code39 to the AutoLayout .
AddCode93(String, Single, [Optional] Boolean, Single?)Adds a Code93 to the AutoLayout .
AddComboBox(String, Single, Single, [Optional] Boolean, Single?)Adds a ComboBox to the AutoLayout .
AddDataMatrix(Byte[], [Optional] DataMatrixSymbolSize, [Optional] DataMatrixEncodingType, [Optional] DataMatrixFunctionCharacter, [Optional] Boolean, Single?)Adds a DataMatrixBarcode to the AutoLayout .
AddDataMatrix(String, [Optional] DataMatrixSymbolSize, [Optional] DataMatrixEncodingType, [Optional] DataMatrixFunctionCharacter, [Optional] Boolean, Single?)Adds a DataMatrixBarcode to the AutoLayout .
AddDeutschePostIdentcode(String, Single, [Optional] Boolean, Single?)Adds a DeutschePostIdentcode to the AutoLayout .
AddDeutschePostLeitcode(String, Single, [Optional] Boolean, Single?)Adds a DeutschePostLeitcode to the AutoLayout .
AddEan13(String, [Optional] Boolean, Single?)Adds an Ean13 to the AutoLayout .
AddEan13Sup2(String, [Optional] Boolean, Single?)Adds an Ean13Sup2 to the AutoLayout .
AddEan13Sup5(String, [Optional] Boolean, Single?)Adds an Ean13Sup5 to the AutoLayout .
AddEan14(String, Single, [Optional] Boolean, Single?)Adds an Ean14 to the AutoLayout .
AddEan8(String, [Optional] Boolean, Single?)Adds an Ean8 to the AutoLayout .
AddEan8Sup2(String, [Optional] Boolean, Single?)Adds an Ean8Sup2 to the AutoLayout .
AddEan8Sup5(String, [Optional] Boolean, Single?)Adds an Ean8Sup5 to the AutoLayout .
AddFormattedText(String, FormattedTextAreaStyle, [Optional] Boolean, Single?)Adds a FormattedTextArea to the AutoLayout .
AddGS1DataBar(String, Single, GS1DataBarType, [Optional] Boolean, Single?)Adds a GS1DataBar to the AutoLayout .
AddHtml(Stream, [Optional] Uri, [Optional] Boolean, Single?)Adds an HtmlArea to the AutoLayout .
AddHtml(String, [Optional] Uri, [Optional] Boolean, Single?)Adds an HtmlArea to the AutoLayout .
AddHtml(Uri, [Optional] Uri, [Optional] Boolean, Single?)Adds an HtmlArea to the AutoLayout .
AddIata25(String, Single, [Optional] Boolean, Single?)Adds an Iata25 to the AutoLayout .
AddImage(ImageData, [Optional] Boolean, Single?)Adds an Image to the AutoLayout .
AddImage(Stream, Single, [Optional] Boolean, Single?)Adds an Image to the AutoLayout .
AddImage(String, [Optional] Single, [Optional] Boolean, Single?)Adds an Image to the AutoLayout .
AddImportedPage(ImportedPageContents, [Optional] Boolean, Single?)Adds a ImportedPageArea to the AutoLayout .
AddImportedPage(PdfPage, [Optional] Boolean, Single?)Adds a ImportedPageArea to the AutoLayout .
AddImportedPage(String, Int32, [Optional] Boolean, Single?)Adds a ImportedPageArea to the AutoLayout .
AddIntelligentMailBarCode(String, [Optional] Boolean, Single?)Adds an IntelligentMailBarCode to the AutoLayout .
AddInterleaved25(String, Single, [Optional] Boolean, Single?)Adds an Interleaved25 to the AutoLayout .
AddIsbn(String, [Optional] Boolean, Single?)Adds an Isbn to the AutoLayout .
AddIsbnSup2(String, String, [Optional] Boolean, Single?)Adds an IsbnSup2 to the AutoLayout .
AddIsbnSup5(String, String, [Optional] Boolean, Single?)Adds an IsbnSup5 to the AutoLayout .
AddIsmn(String, [Optional] Boolean, Single?)Adds an Ismn to the AutoLayout .
AddIsmnSup2(String, String, [Optional] Boolean, Single?)Adds an IsmnSup2 to the AutoLayout .
AddIsmnSup5(String, String, [Optional] Boolean, Single?)Adds an IsmnSup5 to the AutoLayout .
AddIssn(String, [Optional] Boolean, Single?)Adds an Issn to the AutoLayout .
AddIssnSup2(String, String, [Optional] Boolean, Single?)Adds an IssnSup2 to the AutoLayout .
AddIssnSup5(String, String, [Optional] Boolean, Single?)Adds an IssnSup5 to the AutoLayout .
AddItf14(String, Single, [Optional] Boolean, Single?)Adds an Itf14 to the AutoLayout .
AddKix(String, [Optional] Boolean, Single?)Adds a Kix to the AutoLayout .
AddLine(Single, Single, Single, Single, [Optional] Single, [Optional] Boolean, Single?)Adds a Line to the AutoLayout .
AddListBox(String, Single, Single, [Optional] Boolean, Single?)Adds a ListBox to the AutoLayout .
AddMacroPdf417(Byte[], Int32, Int32, Single, [Optional] Boolean, Single?)Adds a MacroPdf417 to the AutoLayout .
AddMacroPdf417(Byte[], Int32, Single, [Optional] Boolean, Single?)Adds a MacroPdf417 to the AutoLayout .
AddMacroPdf417(String, Int32, Int32, Single, [Optional] Boolean, Single?)Adds a MacroPdf417 to the AutoLayout .
AddMacroPdf417(String, Int32, Single, [Optional] Boolean, Single?)Adds a MacroPdf417 to the AutoLayout .
AddMsiBarcode(String, Single, [Optional] Boolean, Single?)Adds an MsiBarcode to the AutoLayout .
AddNote(String, Single, [Optional] Boolean, Single?)Adds a Note to the AutoLayout .
AddOrderedList([Optional] Boolean, Single?)Adds an OrderedList to the AutoLayout .
AddPdf417(Byte[], Int32, Single, [Optional] Boolean, Single?)Adds a Pdf417 to the AutoLayout .
AddPdf417(String, Int32, Single, [Optional] Boolean, Single?)Adds a Pdf417 to the AutoLayout .
AddPostnet(String, [Optional] Boolean, Single?)Adds a Postnet to the AutoLayout .
AddQrCode(Byte[], [Optional] Single, [Optional] QrCodeErrorCorrectionLevel, [Optional] QrCodeVersion, [Optional] Boolean, Single?)Adds a QrCode to the AutoLayout .
AddQrCode(String, [Optional] Single, [Optional] QrCodeEncoding, [Optional] QrCodeErrorCorrectionLevel, [Optional] QrCodeVersion, [Optional] Boolean, Single?)Adds a QrCode to the AutoLayout .
AddRectangle(Single, Single, [Optional] Boolean, Single?)Adds a Rectangle to the AutoLayout .
AddRm4scc(String, [Optional] Boolean, Single?)Adds an Rm4scc to the AutoLayout .
AddSignature(String, Single, Single, [Optional] Boolean, Single?)Adds a Signature to the AutoLayout .
AddSingaporePost(String, [Optional] Boolean, Single?)Adds a SingaporePost to the AutoLayout .
AddStackedGS1DataBar(String, Single, StackedGS1DataBarType, [Optional] Boolean, Single?)Adds a StackedGS1DataBar to the AutoLayout .
AddTable2([Optional] Boolean, Single?)Adds a Table2 to the AutoLayout .
AddText(String, [Optional] Boolean, Single?)Adds a TextArea to the AutoLayout .
AddTextField(String, Single, Single, [Optional] Boolean, Single?)Adds a TextField to the AutoLayout .
AddUnorderedList([Optional] Boolean, Single?)Adds an UnorderedList to the AutoLayout .
AddUpcVersionA(String, [Optional] Boolean, Single?)Adds a UpcVersionA to the AutoLayout .
AddUpcVersionASup2(String, [Optional] Boolean, Single?)Adds a UpcVersionASup2 to the AutoLayout .
AddUpcVersionASup5(String, [Optional] Boolean, Single?)Adds a UpcVersionASup5 to the AutoLayout .
AddUpcVersionE(String, [Optional] Boolean, Single?)Adds a UpcVersionE to the AutoLayout .
AddUpcVersionESup2(String, [Optional] Boolean, Single?)Adds a UpcVersionESup2 to the AutoLayout .
AddUpcVersionESup5(String, [Optional] Boolean, Single?)Adds a UpcVersionESup5 to the AutoLayout .
Equals(Object)Determines whether the specified Object is equal to the current Object .
(Inherited from Object)
GetDocument()Creates a Document object by adding the page elements.
GetHashCode()Serves as a hash function for a particular type.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
ToString()Returns a String that represents the current Object .
(Inherited from Object)

See Also

ceTe.DynamicPDF.PageElements

In this topic