Represents a rectangle page element.
For a list of all members of this type, see Rectangle members.
![]() ![]() ![]() ![]() ![]() ![]()
|
System.Object
ceTe.DynamicPDF.PageElement
ceTe.DynamicPDF.PageElements.RotatingPageElement
ceTe.DynamicPDF.PageElements.Rectangle
[Visual Basic]
Public Class Rectangle
Inherits RotatingPageElement
Implements IArea, ICoordinate, bt [C#]
public class Rectangle : RotatingPageElement, IArea, ICoordinate, bt This class can be used to place rectangles of any size or color on a page.
The following example will display a custom rectangle on the page.
[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 rectangle
Dim MyRectangle As Rectangle = New Rectangle(50, 50, 200, _
200, Grayscale.Black, RgbColor.Gray, 4, LineStyle.Solid)
' Change the corner radius property
MyRectangle.CornerRadius = 10
' Add the rectangle to the page
MyPage.Elements.Add(MyRectangle)
' 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)
Rectangle Members | ceTe.DynamicPDF.PageElements Namespace
© Copyright 2007, ceTe Software