Represents a layout grid.
For a list of all members of this type, see LayoutGrid members.
ceTe.DynamicPDF.PageElement
ceTe.DynamicPDF.PageElements.LayoutGrid
[Visual Basic]
Public Class LayoutGrid
Inherits PageElement[C#]
public class LayoutGrid : PageElementThis class can be used to place a grid on the entire page. This grid is very helpful with the design and layout of the document.
The following example will place a layout grid on the page and also places a rectangle on the page for reference.
[Visual Basic]
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
' Create a Page and add it to the document
Dim MyPage As Page = New Page
MyDocument.Pages.Add(MyPage)
' Create a layout grid
Dim grid As LayoutGrid = New LayoutGrid(LayoutGrid.GridType.Decimal)
' Add a rectangle to the page
MyPage.Elements.Add(New Rectangle(50, 50, 50, 50, 2))
' Add the layout grid to the page
MyPage.Elements.Add(grid)
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
[C#]
using System; |
This class is a DynamicPDF Generator Community Edition feature.
Namespace: ceTe.DynamicPDF.PageElements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: ceTe.DynamicPDF (in ceTe.DynamicPDF.dll)
LayoutGrid Members | ceTe.DynamicPDF.PageElements Namespace
© Copyright 2006, ceTe Software