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
From2DBarcode(Symbology2DType, String)
Creates a FormSource object from two-dimensional (2D) barcode parameters, with a default width and height of 100.
Declaration
public static FormSource From2DBarcode(Symbology2DType symbology, string value)
Parameters
Symbology2DType
symbology
The barcode symbology type. |
System.String
value
The value. |
Returns
FormSource
|
From2DBarcode(Symbology2DType, String, Int32, Int32)
Creates a FormSource object from two-dimensional (2D) barcode parameters.
Declaration
public static FormSource From2DBarcode(Symbology2DType symbology, string value, int width, int height)
Parameters
Symbology2DType
symbology
The barcode symbology type. |
System.String
value
The value. |
System.Int32
width
The barcode width. |
System.Int32
height
The barcode height. |
Returns
FormSource
|
FromBarcode(Symbology1DType, String)
Creates a FormSource object from a one-dimensional (1D) barcode parameters, with a default width and height of 100.
Declaration
public static FormSource FromBarcode(Symbology1DType symbology, string value)
Parameters
Symbology1DType
symbology
The barcode symbology type. |
System.String
value
The value. |
Returns
FormSource
A FormSource object representing the barcode content. |
FromBarcode(Symbology1DType, String, Boolean)
Creates a FormSource object from a one-dimensional (1D) barcode parameters, with a default width and height of 100.
Declaration
public static FormSource FromBarcode(Symbology1DType symbology, string value, bool showText)
Parameters
Symbology1DType
symbology
The barcode symbology type. |
System.String
value
The value. |
System.Boolean
showText
The value indicating whether the text should be shown. Default - false. |
Returns
FormSource
A FormSource object representing the barcode content. |
FromBarcode(Symbology1DType, String, Int32, Int32)
Creates a FormSource object from a one-dimensional (1D) barcode parameters.
Declaration
public static FormSource FromBarcode(Symbology1DType symbology, string value, int width, int height)
Parameters
Symbology1DType
symbology
The barcode symbology type. |
System.String
value
The value. |
System.Int32
width
The barcode width. |
System.Int32
height
The barcode height. |
Returns
FormSource
A FormSource object representing the barcode content. |
FromBarcode(Symbology1DType, String, Int32, Int32, Boolean)
Creates a FormSource object from a one-dimensional (1D) barcode parameters.
Declaration
public static FormSource FromBarcode(Symbology1DType symbology, string value, int width, int height, bool showText)
Parameters
Symbology1DType
symbology
The barcode symbology type. |
System.String
value
The value. |
System.Int32
width
The barcode width. |
System.Int32
height
The barcode height. |
System.Boolean
showText
The value indicating whether the text should be shown. Default - false. |
Returns
FormSource
A FormSource object representing the barcode content. |
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. |