An object drawn on a page: text, an image, a path, a group or a gradient. Obtained from a page's
ObjectModel. Changes are applied to the page at once and written when the document is
saved.
Inheritance Hierarchy Namespace: ExpertPdf.Anywhere.PdfDocumentAssembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntaxpublic abstract class PageObject
Public MustInherit Class PageObject
The PageObject type exposes the following members.
Properties| | Name | Description |
|---|
 | Bounds |
Gets the box the object covers on the page, in points from the top-left corner of the page as displayed.
|
 | FillColor |
Gets or sets the color the object is filled with. Reading it gives an RGB approximation; the empty color
when it cannot be expressed in RGB (a pattern, a spot color). Setting it paints the object in RGB.
|
 | Kind | Gets the kind of the object. |
 | Layer |
Gets or sets the layer the object is drawn in, or null when it is in none. Setting it moves the object into
the layer; null takes it out of every layer.
|
 | Opacity |
Gets or sets the opacity of the object, from 0 (transparent) to 1 (opaque). Reading it gives the fill
opacity; setting it sets the fill and the outline opacity.
|
 | Page | Gets the page the object is drawn on. |
 | Parent | Gets the group the object is drawn in, or null when it is drawn on the page directly. |
 | StrokeColor | Gets or sets the color the object is outlined with (see FillColor). |
Top
Methods| | Name | Description |
|---|
 | BringToFront | Draws the object over everything else in its group (or on the page). |
 | Duplicate | Draws a copy of the object just above it, moved by (dx, dy) points, and returns the copy. |
 | Remove | Removes the object from the page. A removed object can no longer be used. |
 | Rotate | Rotates the object about the center of its bounds. |
 | Scale | Resizes the object about the top-left corner of its bounds. |
 | SendToBack | Draws the object under everything else in its group (or on the page). |
 | ToString | Returns the kind and bounds of the object. (Overrides ObjectToString) |
 | Translate | Moves the object. |
Top
ExamplePageObject first = document.Pages[0].ObjectModel.Objects[0];
first.Translate(10, -5);
first.FillColor = new PdfColor(200, 0, 0);
first.Opacity = 0.5f;
Dim first As PageObject = document.Pages(0).ObjectModel.Objects(0)
first.Translate(10, -5)
first.FillColor = New PdfColor(200, 0, 0)
first.Opacity = 0.5F
See Also