skip navigation
  • Product Bundles

    DevCraft

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

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    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 DocumentVariableCollection

Stores document variables as case-insensitive name-value pairs for use with merge fields and custom document metadata.

Inheritance
System.Object
DocumentVariableCollection
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.Flow.Model.Collections
Assembly: Telerik.Windows.Documents.Flow.dll

Syntax

public class DocumentVariableCollection : IEnumerable<KeyValuePair<string, string>>, IEnumerable

Properties

Count

Gets the number of document variables currently stored in the collection.

Declaration
public int Count { get; }
Property Value
System.Int32

The count.

Item[String]

Gets or sets the value of the document variable with the specified name using case-insensitive matching, throwing if the name does not exist on get.

Declaration
public string this[string name] { get; set; }
Parameters
System.String name

Property Value
System.String

The document variable name

Methods

Add(String, String)

Adds a new document variable or updates the existing variable's value if the name already exists.

Declaration
public void Add(string name, string value)
Parameters
System.String name

The name.

System.String value

The value.

Contains(String)

Determines whether the collection contains a document variable with the specified name using case-insensitive comparison.

Declaration
public bool Contains(string name)
Parameters
System.String name

The name.

Returns
System.Boolean

GetEnumerator()

Returns an enumerator that iterates through all document variable name-value pairs in the collection.

Declaration
public IEnumerator<KeyValuePair<string, string>> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.String>>

A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection.

Implements
System.Collections.Generic.IEnumerable<T>.GetEnumerator()

Remove(String)

Removes the document variable with the specified name and returns whether the removal was successful.

Declaration
public bool Remove(string name)
Parameters
System.String name

The name.

Returns
System.Boolean

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns a non-generic enumerator that iterates through the collection.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.

Implements
System.Collections.IEnumerable.GetEnumerator()
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.