Class PdfEditor
A class which is used to draw content on RadFixedPages.
Inherited Members
Namespace: Telerik.WinControls.Export
Assembly: TelerikExport.dll
Syntax
public class PdfEditor : FixedContentEditor, IPdfEditor
Constructors
PdfEditor(RadFixedPage)
Creates new instance of PdfEditor
Declaration
public PdfEditor(RadFixedPage page)
Parameters
RadFixedPage
page
Associated page. |
Properties
FixedContentEditor
Gets the editor.
Declaration
public FixedContentEditor FixedContentEditor { get; }
Property Value
FixedContentEditor
|
OffsetX
Gets editor's matrix horizontal offset.
Declaration
public double OffsetX { get; }
Property Value
System.Double
|
Implements
OffsetY
Gets editor's matrix vertical offset.
Declaration
public double OffsetY { get; }
Property Value
System.Double
|
Implements
Methods
CreateMatrixPosition()
Creates matrix position.
Declaration
public void CreateMatrixPosition()
Implements
CreateMatrixPosition(Double, Double)
Creates matrix position.
Declaration
public void CreateMatrixPosition(double x, double y)
Parameters
System.Double
x
Horizontal coordinate. |
System.Double
y
Vertical coordinate. |
Implements
SetFillColor(Color)
Sets the fill color of editor's GraphicProperties.
Declaration
public void SetFillColor(Color color)
Parameters
System.Drawing.Color
color
|
Implements
SetLinearGradient(Int32, PointF, PointF, Color, Color, Color, Color)
Creates and sets linear gradient as editor's GraphicProeprties FillColor.
Declaration
public void SetLinearGradient(int numberOfColors, PointF startPoint, PointF endPoint, Color color, Color color2, Color color3, Color color4)
Parameters
System.Int32
numberOfColors
NUmber of colors. |
System.Drawing.PointF
startPoint
Start point. |
System.Drawing.PointF
endPoint
End point. |
System.Drawing.Color
color
Color. |
System.Drawing.Color
color2
Second color. |
System.Drawing.Color
color3
Third color. |
System.Drawing.Color
color4
Fourth color. |
Implements
SetStrokeColor(Color)
Sets the stroke color of editor's GraphicProperties.
Declaration
public void SetStrokeColor(Color color)
Parameters
System.Drawing.Color
color
|
Implements
SetTextFontSize(Double)
Sets editor properties font size.
Declaration
public void SetTextFontSize(double value)
Parameters
System.Double
value
|
Implements
TranslatePosition(Double, Double)
Translates editor position.
Declaration
public void TranslatePosition(double x, double y)
Parameters
System.Double
x
Horizontal coordinate. |
System.Double
y
Vertical coordinate. |
Implements
TrySetFont(String, FontStyle)
Tries to set editor TextProperties font.
Declaration
public bool TrySetFont(string fontName, FontStyle fontStyle)
Parameters
System.String
fontName
The name of font. |
System.Drawing.FontStyle
fontStyle
The style of font. |
Returns
System.Boolean
|
Implements
Explicit Interface Implementations
IPdfEditor.DrawLine(PointF, PointF)
Draws line.
Declaration
void IPdfEditor.DrawLine(PointF startPoint, PointF endPoint)
Parameters
System.Drawing.PointF
startPoint
Start point. |
System.Drawing.PointF
endPoint
End point. |
Implements
IPdfEditor.DrawRectangle(PointF, PointF)
Draws rectangle/
Declaration
void IPdfEditor.DrawRectangle(PointF topLeft, PointF bottomRight)
Parameters
System.Drawing.PointF
topLeft
Top left point. |
System.Drawing.PointF
bottomRight
Bottom right point. |
Implements
IPdfEditor.PopClipping()
IPdfEditor.PushClipping(Double, Double, Double, Double)
Pushes clipping.
Declaration
void IPdfEditor.PushClipping(double x, double y, double width, double height)
Parameters
System.Double
x
Horizontal coordinate. |
System.Double
y
Vertical coordinate. |
System.Double
width
Width. |
System.Double
height
Height. |
Implements
IPdfEditor.RestorePosition()
Restores editor position.
Declaration
void IPdfEditor.RestorePosition()
Implements
IPdfEditor.RestoreProperties()
Restores editor properties.
Declaration
void IPdfEditor.RestoreProperties()
Implements
IPdfEditor.SavePosition()
Saves editor position.
Declaration
void IPdfEditor.SavePosition()
Implements
IPdfEditor.SaveProperties()
Saves editor properties.
Declaration
void IPdfEditor.SaveProperties()