Class FormSource
Represents a PDF form source. This class owns a Content
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 IContent
Declaration
public AnnotationCollection Annotations { get; }
Property Value
Implements
Content
Gets the content.
Declaration
public ContentElementCollection Content { get; }
Property Value
Content The content. |
Implements
Parent
Gets the parent of the IContent
Declaration
public IFixedDocumentElement Parent { get; }
Property Value
Implements
Size
Gets or sets the size of the Form
Declaration
public Size Size { get; set; }
Property Value
System.
|
Implements
SupportsAnnotations
Indicates whether the IContentRootElement supports annotations.
Declaration
public bool SupportsAnnotations { get; }
Property Value
System.
|
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. The value. |
Returns
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. The value. |
System. The barcode width. |
System. The barcode height. |
Returns
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. The value. |
Returns
Form 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. The value. |
System. The value indicating whether the text should be shown. Default - false. |
Returns
Form 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. The value. |
System. The barcode width. |
System. The barcode height. |
Returns
Form 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. The value. |
System. The barcode width. |
System. The barcode height. |
System. The value indicating whether the text should be shown. Default - false. |
Returns
Form 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. The byte array containing the SVG file data. |
Returns
Form 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. The stream containing the SVG file data. |
Returns
Form 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. The SVG XML string representing the form. |
Returns
Form A FormSource object representing the SVG content. |