Class FixedContentEditor
Represents content editor that will allow you to easily create fixed content.
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Editing
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class FixedContentEditor : FixedContentEditorBase
Constructors
FixedContentEditor(IContentRootElement)
Initializes a new instance of the FixedContentEditor class.
Declaration
public FixedContentEditor(IContentRootElement root)
Parameters
IContentRootElement
root
The root. |
FixedContentEditor(IContentRootElement, IPosition)
Initializes a new instance of the FixedContentEditor class.
Declaration
public FixedContentEditor(IContentRootElement root, IPosition initialPosition)
Parameters
IContentRootElement
root
The root. |
IPosition
initialPosition
The initial position. |
Properties
Clipping
Gets the current clipping object.
Declaration
public Clipping Clipping { get; }
Property Value
Clipping
The clipping. |
Position
Gets or sets the current position.
Declaration
public IPosition Position { get; set; }
Property Value
IPosition
The position. |
Root
Gets the root element for the fixed content.
Declaration
public IContentRootElement Root { get; }
Property Value
IContentRootElement
The root element. |
Methods
Draw(PositionContentElement)
Draws the specified element.
Declaration
public void Draw(PositionContentElement element)
Parameters
PositionContentElement
element
The element. |
DrawBlock(IBlockElement)
Draws the block.
Declaration
public void DrawBlock(IBlockElement block)
Parameters
IBlockElement
block
The block. |
DrawBlock(IBlockElement, Size)
Draws the block in given size.
Declaration
public void DrawBlock(IBlockElement block, Size size)
Parameters
IBlockElement
block
The block. |
System.Windows.Size
size
The size. |
DrawCircle(Point, Double)
Draws a circle.
Declaration
public void DrawCircle(Point center, double radius)
Parameters
System.Windows.Point
center
The center. |
System.Double
radius
The radius. |
DrawEllipse(Point, Double, Double)
Draws a ellipse.
Declaration
public void DrawEllipse(Point center, double radiusX, double radiusY)
Parameters
System.Windows.Point
center
The center. |
System.Double
radiusX
The radius X. |
System.Double
radiusY
The radius Y. |
DrawForm(FormSource)
Draws the form.
Declaration
public void DrawForm(FormSource source)
Parameters
FormSource
source
The source. |
DrawForm(FormSource, Double, Double)
Draws a form.
Declaration
public void DrawForm(FormSource source, double width, double height)
Parameters
FormSource
source
The form source. |
System.Double
width
The width. |
System.Double
height
The height. |
DrawForm(FormSource, Size)
Draws a form.
Declaration
public void DrawForm(FormSource source, Size size)
Parameters
FormSource
source
The form source. |
System.Windows.Size
size
The size. |
DrawImage(Stream)
Draws the image.
Declaration
public void DrawImage(Stream stream)
Parameters
System.IO.Stream
stream
The stream. |
DrawImage(Stream, Double, Double)
Draws the image.
Declaration
public void DrawImage(Stream stream, double width, double height)
Parameters
System.IO.Stream
stream
The stream. |
System.Double
width
The width. |
System.Double
height
The height. |
DrawImage(Stream, Size)
Draws the image.
Declaration
public void DrawImage(Stream stream, Size size)
Parameters
System.IO.Stream
stream
The stream. |
System.Windows.Size
size
The size. |
DrawImage(ImageSource)
Draws the image.
Declaration
public void DrawImage(ImageSource source)
Parameters
ImageSource
source
The source. |
DrawImage(ImageSource, Double, Double)
Draws the image.
Declaration
public void DrawImage(ImageSource source, double width, double height)
Parameters
ImageSource
source
The source. |
System.Double
width
The width. |
System.Double
height
The height. |
DrawImage(ImageSource, Size)
Draws the image.
Declaration
public void DrawImage(ImageSource source, Size size)
Parameters
ImageSource
source
The source. |
System.Windows.Size
size
The size. |
DrawLine(Point, Point)
Draws a line.
Declaration
public void DrawLine(Point point1, Point point2)
Parameters
System.Windows.Point
point1
The point1. |
System.Windows.Point
point2
The point2. |
DrawLineAnnotation(Double, Double)
Creates a new LineAnnotation with starting point the current point of the editor and end point the current point of the editor plus the given distances.
Declaration
public void DrawLineAnnotation(double xDistance, double yDistance)
Parameters
System.Double
xDistance
The distance between the start and the end point of the line along the x-axis. |
System.Double
yDistance
The distance between the start and the end point of the line along the y-axis. |
DrawPath(GeometryBase)
Draws a path with given geometry.
Declaration
public void DrawPath(GeometryBase geometry)
Parameters
GeometryBase
geometry
The geometry. |
DrawRectangle(Rect)
Draws a rectangle.
Declaration
public void DrawRectangle(Rect rectangle)
Parameters
System.Windows.Rect
rectangle
The rectangle. |
DrawStampAnnotation(Size, String)
Creates a new StampAnnotation and draws it with a specified Annotation size and name. This method will add the stamp only in cases when the FixedContentEditor Root supports annotations.
Declaration
public void DrawStampAnnotation(Size annotationSize, string stampName)
Parameters
System.Windows.Size
annotationSize
The size of the stamp. |
System.String
stampName
The name of the stamp. |
DrawTable(Table)
DrawTable(Table, Double)
Draws the table with some fit table width.
Declaration
public void DrawTable(Table table, double width)
Parameters
Table
table
The table. |
System.Double
width
The width to fit the table in. |
DrawTable(Table, Size)
Draws the table.
Declaration
public void DrawTable(Table table, Size size)
Parameters
Table
table
The table. |
System.Windows.Size
size
The size to fit the table in. Only the rows that fit in the given hight are drawn. The rest of the table can be taken with the table.Split() method. |
DrawText(String)
Draws the text using current text state at the current position.
Declaration
public void DrawText(string text)
Parameters
System.String
text
The text. |
DrawText(String, Size)
Draws the text.
Declaration
public void DrawText(string text, Size size)
Parameters
System.String
text
The text. |
System.Windows.Size
size
The size. |
DrawTextAnnotation(Size, Size, String, Boolean)
Creates a new TextAnnotation and draws it with a specified size and text and can create a PopupAnnotation to go with it.
Declaration
public void DrawTextAnnotation(Size annotationSize, Size popupSize, string text, bool addPopup = true)
Parameters
System.Windows.Size
annotationSize
The size of the text annotation. |
System.Windows.Size
popupSize
The size of the popup annotation. |
System.String
text
The text that will appear in the popup annotation. |
System.Boolean
addPopup
A value indicating whether to create a popup for the text annotation. |
DrawWidget(RadioButtonField, RadioOption, Size)
Creates new RadioButtonWidget representing a RadioButtonField and draws the widget with a specified Annotation size. This method will add widget only in cases when the FixedContentEditor Root supports annotations.
Declaration
public void DrawWidget(RadioButtonField parentField, RadioOption option, Size annotationSize)
Parameters
RadioButtonField
parentField
The form field the should be represented by the widget. |
RadioOption
option
The option that should be represented by the widget. |
System.Windows.Size
annotationSize
The Annotation size. |
DrawWidget<T>(FormField<T>, Size)
Creates new Widget representing a FormField and draws the widget with a specified Annotation size. This method will add widget only in cases when the FixedContentEditor Root supports annotations.
Declaration
public void DrawWidget<T>(FormField<T> parentField, Size annotationSize)
where T : Widget
Parameters
FormField<T>
parentField
The form field the should be represented by the widget. |
System.Windows.Size
annotationSize
The Annotation size. |
Type Parameters
T
The widget type. |
PopClipping()
PushClipping(Rect)
Pushes the clipping.
Declaration
public IDisposable PushClipping(Rect clip)
Parameters
System.Windows.Rect
clip
The clip. |
Returns
System.IDisposable
|
PushClipping(GeometryBase)
Pushes the clipping.
Declaration
public IDisposable PushClipping(GeometryBase clip)
Parameters
GeometryBase
clip
The clip. |
Returns
System.IDisposable
|
RestorePosition()
Restores the position.
Declaration
public void RestorePosition()
SavePosition()
Saves the position.
Declaration
public IDisposable SavePosition()
Returns
System.IDisposable
|