Class PageGraphicElement
- Namespace
- EvoPdf
- Assembly
- evohtmltopdf.dll
This abstract class is the base class for all graphic elements that can be added to a PDF document
[ClassInterface(ClassInterfaceType.AutoDual)]
public abstract class PageGraphicElement : PageElement
- Inheritance
-
PageGraphicElement
- Derived
- Inherited Members
Properties
BackColor
Gets or sets element background color.
public PdfColor BackColor { get; set; }
Property Value
Blending
Gets or sets blending mode for transparent rendering mode of the element.
public Blending Blending { get; set; }
Property Value
ClipRectangle
The clip rectangle applied when the element is rendered in PDF
public RectangleF ClipRectangle { get; set; }
Property Value
ForeColor
Gets or sets the element foreground color.
public PdfColor ForeColor { get; set; }
Property Value
Gradient
The gradient used to fill a shape.
public GradientColor Gradient { get; set; }
Property Value
LineStyle
Gets or sets the line style for elements rendering lines.
public LineStyle LineStyle { get; set; }
Property Value
Opacity
Gets or sets element opacity. The opacity is expressed as a value between 0 and 100. 0 means completely transparent and 100 completely opaque. The default value of this property is 100.
public int Opacity { get; set; }
Property Value
Rotated
A flag to indicate if this element was rotated.
public bool Rotated { get; }
Property Value
Scaled
A flag to indicate if this element was scaled.
public bool Scaled { get; }
Property Value
Skewed
A flag to indicate if this element was skewed.
public bool Skewed { get; }
Property Value
Translated
A flag to indicate if this element was translated.
public bool Translated { get; }
Property Value
Methods
Rotate(float)
Rotates the coordinate system axes clockwise by the specified angle before rendering the element. The coordinates of the element are relative to the rotated coordinates system.
public void Rotate(float rotateAngle)
Parameters
rotateAngle
floatThe angle of the rotation in degrees.
Remarks
For text rotation use the TextAngle property of the TextElement.
Scale(float, float)
Scales the coordinates so that 1 unit in the horizontal and vertical dimensions of the new coordinate system is the same size as sx and sy units, respectively, in the previous coordinate system.
public void Scale(float sx, float sy)
Parameters
sx
floatThe value by which to scale coordinate system in the x-axis direction.
sy
floatThe value by which to scale coordinate system in the y-axis direction.
Skew(float, float)
Skews the x axis by an skewXAngle and the y axis by an skewYAngle before rendering the element.
public void Skew(float skewXAngle, float skewYAngle)
Parameters
Translate(float, float)
Translates the coordinate system before rendering the element.
The coordinates of the element are relative to the translated coordinate system.
public void Translate(float tx, float ty)