For a list of all members of this type, see Line Members
System.Object
ceTe.DynamicPDF.PageElement
public class Line : PageElement
Remarks
Example
[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 line
Dim MyLine As Line = New Line(50, 50, 50, 400, 5, _
Color.Black, LineStyle.Solid)
' Change the line cap property
MyLine.Cap = LineCap.Round
' Add two lines to the page
MyPage.Elements.Add(MyLine)
MyPage.Elements.Add(New Line(60, 50, 150, 400, 2, _
Color.Blue, LineStyle.DashLarge))
' Save the PDF
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
[C#]
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements;
class MyClass
{
static void Main()
{
// Create a PDF Document
Document document = new Document();
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add( page );
// Create a line
Line line = new Line( 50, 50, 50, 400, 5, Color.Black,
LineStyle.Solid );
// Change the line cap property
line.Cap = LineCap.Round;
// Add two lines to the page
page.Elements.Add( line );
page.Elements.Add( new Line( 60, 50, 150, 400, 2,
Color.Blue, LineStyle.DashLarge ) );
// Save the PDF
document.Draw( @"C:\MyDocument.pdf" );
}
}
Requirements
Namespace: ceTe.DynamicPDF.PageElements Namespace
Assembly: DynamicPDF.Generator.[Edition].dll
See Also
Line members | ceTe.DynamicPDF.PageElements Namespace

