Class PdfPage
Inheritance
System.Object
PdfPage
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Azos.Media.dll
Syntax
public class PdfPage : PdfObject, IPdfObject
Properties
Elements
Declaration
public List<PdfElement> Elements { get; }
Property Value
Type |
Description |
System.Collections.Generic.List<PdfElement> |
|
Height
Declaration
public float Height { get; }
Property Value
Type |
Description |
System.Single |
|
UserUnit
User space units
(the default user space unit is 1/72 inch)
Declaration
public float UserUnit { get; }
Property Value
Type |
Description |
System.Single |
|
Width
Declaration
public float Width { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Add(PdfElement)
Adds PDF element to page's elements collection
Declaration
public void Add(PdfElement element)
Parameters
AddCircle(Single, Single, Single, PdfColor)
Add circle primitive to the page
Declaration
public PathElement AddCircle(float centerX, float centerY, float r, PdfColor fill)
Parameters
Type |
Name |
Description |
System.Single |
centerX |
|
System.Single |
centerY |
|
System.Single |
r |
|
PdfColor |
fill |
|
Returns
AddCircle(Single, Single, Single, PdfColor, Single)
Add circle primitive to the page
Declaration
public PathElement AddCircle(float centerX, float centerY, float r, PdfColor fill, float borderThickness)
Parameters
Type |
Name |
Description |
System.Single |
centerX |
|
System.Single |
centerY |
|
System.Single |
r |
|
PdfColor |
fill |
|
System.Single |
borderThickness |
|
Returns
AddCircle(Single, Single, Single, PdfColor, Single, PdfColor)
Add circle primitive to the page
Declaration
public PathElement AddCircle(float centerX, float centerY, float r, PdfColor fill, float borderThickness, PdfColor borderColor)
Parameters
Type |
Name |
Description |
System.Single |
centerX |
|
System.Single |
centerY |
|
System.Single |
r |
|
PdfColor |
fill |
|
System.Single |
borderThickness |
|
PdfColor |
borderColor |
|
Returns
AddCircle(Single, Single, Single, PdfColor, Single, PdfColor, PdfLineType)
Add circle primitive to the page
Declaration
public PathElement AddCircle(float centerX, float centerY, float r, PdfColor fill, float borderThickness, PdfColor borderColor, PdfLineType borderType)
Parameters
Type |
Name |
Description |
System.Single |
centerX |
|
System.Single |
centerY |
|
System.Single |
r |
|
PdfColor |
fill |
|
System.Single |
borderThickness |
|
PdfColor |
borderColor |
|
PdfLineType |
borderType |
|
Returns
AddCircle(Single, Single, Single, PdfDrawStyle)
Add circle primitive to the page
Declaration
public PathElement AddCircle(float centerX, float centerY, float r, PdfDrawStyle borderStyle)
Parameters
Type |
Name |
Description |
System.Single |
centerX |
|
System.Single |
centerY |
|
System.Single |
r |
|
PdfDrawStyle |
borderStyle |
|
Returns
AddImage(String)
Declaration
public ImageElement AddImage(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Returns
AddImage(String, Single, Single)
Declaration
public ImageElement AddImage(string filePath, float width, float height)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
System.Single |
width |
|
System.Single |
height |
|
Returns
AddLine(Single, Single, Single, Single)
Add line primitive to the page
Declaration
public PathElement AddLine(float x1, float y1, float x2, float y2)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
Returns
AddLine(Single, Single, Single, Single, PdfDrawStyle)
Add line primitive to the page
Declaration
public PathElement AddLine(float x1, float y1, float x2, float y2, PdfDrawStyle style)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
PdfDrawStyle |
style |
|
Returns
AddLine(Single, Single, Single, Single, Single)
Add line primitive to the page
Declaration
public PathElement AddLine(float x1, float y1, float x2, float y2, float thickness)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
System.Single |
thickness |
|
Returns
AddLine(Single, Single, Single, Single, Single, PdfColor)
Add line primitive to the page
Declaration
public PathElement AddLine(float x1, float y1, float x2, float y2, float thickness, PdfColor color)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
System.Single |
thickness |
|
PdfColor |
color |
|
Returns
AddLine(Single, Single, Single, Single, Single, PdfColor, PdfLineType)
Add line primitive to the page
Declaration
public PathElement AddLine(float x1, float y1, float x2, float y2, float thickness, PdfColor color, PdfLineType type)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
System.Single |
thickness |
|
PdfColor |
color |
|
PdfLineType |
type |
|
Returns
AddPath(Single, Single)
Declaration
public PathElement AddPath(float x, float y)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
Returns
AddPath(Single, Single, PdfDrawStyle)
Declaration
public PathElement AddPath(float x, float y, PdfDrawStyle style)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
PdfDrawStyle |
style |
|
Returns
AddPath(Single, Single, Single)
Declaration
public PathElement AddPath(float x, float y, float thickness)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
thickness |
|
Returns
AddPath(Single, Single, Single, PdfColor)
Declaration
public PathElement AddPath(float x, float y, float thickness, PdfColor color)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
thickness |
|
PdfColor |
color |
|
Returns
AddPath(Single, Single, Single, PdfColor, PdfLineType)
Declaration
public PathElement AddPath(float x, float y, float thickness, PdfColor color, PdfLineType type)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
System.Single |
y |
|
System.Single |
thickness |
|
PdfColor |
color |
|
PdfLineType |
type |
|
Returns
AddRectangle(Single, Single, Single, Single, PdfColor)
Add rectangle primitive to the page
Declaration
public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfColor fill)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
PdfColor |
fill |
|
Returns
AddRectangle(Single, Single, Single, Single, PdfColor, Single)
Add rectangle primitive to the page
Declaration
public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfColor fill, float borderThickness)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
PdfColor |
fill |
|
System.Single |
borderThickness |
|
Returns
AddRectangle(Single, Single, Single, Single, PdfColor, Single, PdfColor)
Add rectangle primitive to the page
Declaration
public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfColor fill, float borderThickness, PdfColor borderColor)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
PdfColor |
fill |
|
System.Single |
borderThickness |
|
PdfColor |
borderColor |
|
Returns
AddRectangle(Single, Single, Single, Single, PdfColor, Single, PdfColor, PdfLineType)
Add rectangle primitive to the page
Declaration
public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfColor fill, float borderThickness, PdfColor borderColor, PdfLineType borderType)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
PdfColor |
fill |
|
System.Single |
borderThickness |
|
PdfColor |
borderColor |
|
PdfLineType |
borderType |
|
Returns
AddRectangle(Single, Single, Single, Single, PdfDrawStyle)
Add rectangle primitive to the page
Declaration
public RectangleElement AddRectangle(float x1, float y1, float x2, float y2, PdfDrawStyle style)
Parameters
Type |
Name |
Description |
System.Single |
x1 |
|
System.Single |
y1 |
|
System.Single |
x2 |
|
System.Single |
y2 |
|
PdfDrawStyle |
style |
|
Returns
AddText(String)
Declaration
public TextElement AddText(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Returns
AddText(String, Single, PdfFont)
Declaration
public TextElement AddText(string text, float fontSize, PdfFont font)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Single |
fontSize |
|
PdfFont |
font |
|
Returns
AddText(String, Single, PdfFont, PdfColor)
Declaration
public TextElement AddText(string text, float fontSize, PdfFont font, PdfColor foreground)
Parameters
Type |
Name |
Description |
System.String |
text |
|
System.Single |
fontSize |
|
PdfFont |
font |
|
PdfColor |
foreground |
|
Returns
Extension Methods