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 Fixed
Declaration
public FixedContentEditor(IContentRootElement root)
Parameters
IContent The root. |
FixedContentEditor(IContentRootElement, IPosition)
Initializes a new instance of the Fixed
Declaration
public FixedContentEditor(IContentRootElement root, IPosition initialPosition)
Parameters
IContent 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
IContent The root element. |
Methods
Draw(PositionContentElement)
Draws the specified element.
Declaration
public void Draw(PositionContentElement element)
Parameters
Position The element. |
DrawBlock(IBlockElement)
Draws the block.
Declaration
public void DrawBlock(IBlockElement block)
Parameters
IBlock The block. |
DrawBlock(IBlockElement, Size)
Draws the block in given size.
Declaration
public void DrawBlock(IBlockElement block, Size size)
Parameters
IBlock The block. |
System. The size. |
DrawCircle(Point, Double)
Draws a circle.
Declaration
public void DrawCircle(Point center, double radius)
Parameters
System. The center. |
System. The radius. |
DrawEllipse(Point, Double, Double)
Draws a ellipse.
Declaration
public void DrawEllipse(Point center, double radiusX, double radiusY)
Parameters
System. The center. |
System. The radius X. |
System. The radius Y. |
DrawForm(FormSource)
Draws the form.
Declaration
public void DrawForm(FormSource source)
Parameters
Form The source. |
DrawForm(FormSource, Double, Double)
Draws a form.
Declaration
public void DrawForm(FormSource source, double width, double height)
Parameters
Form The form source. |
System. The width. |
System. The height. |
DrawForm(FormSource, Size)
Draws a form.
Declaration
public void DrawForm(FormSource source, Size size)
Parameters
Form The form source. |
System. The size. |
DrawImage(Stream)
Draws the image.
Declaration
public void DrawImage(Stream stream)
Parameters
System. The stream. |
DrawImage(Stream, Double, Double)
Draws the image.
Declaration
public void DrawImage(Stream stream, double width, double height)
Parameters
System. The stream. |
System. The width. |
System. The height. |
DrawImage(Stream, Size)
Draws the image.
Declaration
public void DrawImage(Stream stream, Size size)
Parameters
System. The stream. |
System. The size. |
DrawImage(ImageSource)
Draws the image.
Declaration
public void DrawImage(ImageSource source)
Parameters
Image The source. |
DrawImage(ImageSource, Double, Double)
Draws the image.
Declaration
public void DrawImage(ImageSource source, double width, double height)
Parameters
Image The source. |
System. The width. |
System. The height. |
DrawImage(ImageSource, Size)
Draws the image.
Declaration
public void DrawImage(ImageSource source, Size size)
Parameters
Image The source. |
System. The size. |
DrawLine(Point, Point)
Draws a line.
Declaration
public void DrawLine(Point point1, Point point2)
Parameters
System. The point1. |
System. The point2. |
DrawLineAnnotation(Double, Double)
Creates a new Line
Declaration
public void DrawLineAnnotation(double xDistance, double yDistance)
Parameters
System. The distance between the start and the end point of the line along the x-axis. |
System. 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
Geometry The geometry. |
DrawRectangle(Rect)
Draws a rectangle.
Declaration
public void DrawRectangle(Rect rectangle)
Parameters
System. The rectangle. |
DrawStampAnnotation(Size, String)
Creates a new Stamp
Declaration
public void DrawStampAnnotation(Size annotationSize, string stampName)
Parameters
System. The size of the stamp. |
System. 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. 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. 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. The text. |
DrawText(String, Size)
Draws the text.
Declaration
public void DrawText(string text, Size size)
Parameters
System. The text. |
System. The size. |
DrawTextAnnotation(Size, Size, String, Boolean)
Creates a new Text
Declaration
public void DrawTextAnnotation(Size annotationSize, Size popupSize, string text, bool addPopup = true)
Parameters
System. The size of the text annotation. |
System. The size of the popup annotation. |
System. The text that will appear in the popup annotation. |
System. A value indicating whether to create a popup for the text annotation. |
DrawWidget(RadioButtonField, RadioOption, Size)
Creates new Radio
Declaration
public void DrawWidget(RadioButtonField parentField, RadioOption option, Size annotationSize)
Parameters
Radio The form field the should be represented by the widget. |
Radio The option that should be represented by the widget. |
System. The Annotation size. |
DrawWidget<T>(FormField<T>, Size)
Creates new Widget representing a Form
Declaration
public void DrawWidget<T>(FormField<T> parentField, Size annotationSize)
where T : Widget
Parameters
Form The form field the should be represented by the widget. |
System. The Annotation size. |
Type Parameters
T
The widget type. |
PopClipping()
PushClipping(Rect)
Pushes the clipping.
Declaration
public IDisposable PushClipping(Rect clip)
Parameters
System. The clip. |
Returns
System.
|
PushClipping(GeometryBase)
Pushes the clipping.
Declaration
public IDisposable PushClipping(GeometryBase clip)
Parameters
Geometry The clip. |
Returns
System.
|
RestorePosition()
Restores the position.
Declaration
public void RestorePosition()
SavePosition()
Saves the position.
Declaration
public IDisposable SavePosition()
Returns
System.
|