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 Angular UI for Vue UI for jQuery KendoReact 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 Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • Roadmap
    • Release History
  • 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

DefaultStructureRoot

Gets the default structure root element of the structure. This is the root element that is used when auto-tagging is enabled.

Declaration
public StructureElement DefaultStructureRoot { get; }
Property Value
StructureElement

The default structure root.

Implements
IContentRootElement.DefaultStructureRoot

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

StructureStack

Gets the stack of structure elements used to manage hierarchical processing when auto-tagging is enabled.

Declaration
public Stack<StructureElement> StructureStack { get; }
Property Value
System.Collections.Generic.Stack<StructureElement>

The structure stack.

Implements
IContentRootElement.StructureStack

SupportsAnnotations

Indicates whether the IContentRootElement supports annotations.

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

Implements
IContentRootElement.SupportsAnnotations

SupportsAutoTagging

Gets a value indicating whether the element supports automatic tagging functionality.

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

True if the element supports auto tagging.

Implements
IContentRootElement.SupportsAutoTagging

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.