PdfRectangle Class |
Namespace: Atalasoft.PdfDoc.Generating.Shapes
The PdfRectangle type exposes the following members.
Name | Description | |
---|---|---|
PdfRectangle(PdfBounds, IPdfColor) |
Initializes a new instance of the PdfRectangle class.
| |
PdfRectangle(PdfBounds, IPdfColor, Double) |
Initializes a new instance of the PdfRectangle class.
| |
PdfRectangle(PdfBounds, IPdfColor, PdfLineStyle, IPdfColor) |
Initializes a new instance of the PdfRectangle class.
| |
PdfRectangle(PdfBounds, IPdfColor, Double, IPdfColor) |
Initializes a new instance of the PdfRectangle class.
|
Name | Description | |
---|---|---|
Bounds |
Gets or sets the bounds of the rectangle.
| |
Clip |
Gets or sets a value indicating whether this PdfBaseShape shape will clip.
(Inherited from PdfBaseShape.) | |
FillColor |
Gets or sets the color of the fill.
(Inherited from PdfBaseShape.) | |
Location |
Gets or sets the location.
(Inherited from PdfBaseShape.) | |
Name |
Gets or sets the name of the IPdfRenderable object.
(Inherited from PdfBaseShape.) | |
OutlineColor |
Gets or sets the color of the outline.
(Inherited from PdfBaseShape.) | |
Rotation |
Gets or sets the rotation in degrees.
(Inherited from PdfBaseShape.) | |
Scale |
Gets or sets the scale.
(Inherited from PdfBaseShape.) | |
Style |
Gets or sets the style.
(Inherited from PdfBaseShape.) |
Name | Description | |
---|---|---|
Clone |
Creates a new object that is a copy of the current instance.
(Inherited from PdfBaseShape.) | |
CloneInstance |
Clones the instance.
(Overrides PdfBaseShapeCloneInstance.) | |
CopyBaseShapePropertiesTo |
Copies the base shape properties to the parameter shape.
(Inherited from PdfBaseShape.) | |
DrawShape |
Draws the shape.
(Overrides PdfBaseShapeDrawShape(PdfPageRenderer).) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GenerateTransform |
Generates the default transform based on Scale, Rotate, and Translate.
(Inherited from PdfBaseShape.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
NotifyResourceRenamed |
Notifies a resource consumer that a resource was renamed.
(Inherited from PdfBaseShape.) | |
OnResourceRenamed |
Called when a resource in the base shape has been renamed.
(Inherited from PdfBaseShape.) | |
OnResourcesRequested |
Called when the PdfBaseShape is requested to report resources used. If client code
consumes resources, it should override this method combining its results with those of
base.OnResourceRequested (Inherited from PdfBaseShape.) | |
Render |
Generates the PDF.
(Inherited from PdfBaseShape.) | |
ResourcesUsed |
Reports a list of all resources consumed by the object of the given class.
(Inherited from PdfBaseShape.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
PdfGeneratedDocument doc = new PdfGeneratedDocument(); PdfGeneratedPage page = PdfDefaultPages.Letter; doc.Pages.Add(page); PdfRectangle rect = new PdfRectangle(new PdfBounds(0, 0, 100, 100), PdfColorFactory.FromRgb(.25, .75, .15)); rect.OutlineColor = PdfColorFactory.FromRgb(0, 0, .25); page.DrawingList.Add(rect);