skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
  • Docs & Support
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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
System.Object
FormSource
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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
IContentRootElement.Annotations

Content

Gets the content.

Declaration
public ContentElementCollection Content { get; }
Property Value
ContentElementCollection

The content.

Implements
IContainerElement.Content

Parent

Gets the parent of the IContentRootElement.

Declaration
public IFixedDocumentElement Parent { get; }
Property Value
IFixedDocumentElement

Implements
IFixedDocumentElement.Parent

Size

Gets or sets the size of the FormSource.

Declaration
public Size Size { get; set; }
Property Value
System.Windows.Size

Implements
IContentRootElement.Size

SupportsAnnotations

Indicates whether the IContentRootElement supports annotations.

Declaration
public bool SupportsAnnotations { get; }
Property Value
System.Boolean

Implements
IContentRootElement.SupportsAnnotations

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.

Getting Started
  • Getting Started
Support Resources
  • Documentation
Community
  • Forums
  • Blogs
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.