Class FormSource
Represents a PDF form source. This class owns a ContentElementCollection and allows reuse of PDF content by using the same FormSource on different Form class instances.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Fixed.Model.Resources
Assembly: Telerik.Windows.Documents.Fixed.dll
Syntax
public class FormSource : IContentRootElement, IContainerElement, IFixedDocumentElement, IInstanceIdOwner
Constructors
FormSource()
Creates new instance of FormSource.
Declaration
public FormSource()
Properties
Annotations
Gets the annotation collection of the IContentRootElement.
Declaration
public AnnotationCollection Annotations { get; }
Property Value
AnnotationCollection
|
Implements
Content
Gets the content.
Declaration
public ContentElementCollection Content { get; }
Property Value
ContentElementCollection
The content. |
Implements
Parent
Gets the parent of the IContentRootElement.
Declaration
public IFixedDocumentElement Parent { get; }
Property Value
IFixedDocumentElement
|
Implements
Size
Gets or sets the size of the FormSource.
Declaration
public Size Size { get; set; }
Property Value
System.Windows.Size
|
Implements
SupportsAnnotations
Indicates whether the IContentRootElement supports annotations.
Declaration
public bool SupportsAnnotations { get; }
Property Value
System.Boolean
|
Implements
Methods
FromSvg(Byte[])
Creates a FormSource object from an SVG file provided as a byte[].
Declaration
public static FormSource FromSvg(byte[] svgData)
Parameters
System.Byte[]
svgData
The byte array containing the SVG file data. |
Returns
FormSource
A FormSource object representing the SVG content. |
FromSvg(Stream)
Creates a FormSource object from an SVG file provided as a stream.
Declaration
public static FormSource FromSvg(Stream stream)
Parameters
System.IO.Stream
stream
The stream containing the SVG file data. |
Returns
FormSource
A FormSource object representing the SVG content. |
FromSvg(String)
Creates a FormSource object from an SVG file provided as an XML content.
Declaration
public static FormSource FromSvg(string xml)
Parameters
System.String
xml
The SVG XML string representing the form. |
Returns
FormSource
A FormSource object representing the SVG content. |