TX Text Control .NET Documentation

TXTextControl.UserDefinedPropertyDictionary Class

An instance of the UserDefinedPropertyDictionary class contains all user-defined document properties contained in a loaded document or which will be saved in a document. The UserDefinedPropertyDictionary class is used with the LoadSettings.UserDefinedDocumentProperties and SaveSettings.UserDefinedDocumentProperties properties. Each entry in the dictionary is a key/value pair, where the key is the name of the document property and the value is the document property's value. The foreach statement of the C# language (for each in Visual Basic) returns an object of the type of the elements in the collection. Since each element is a key/value pair, the element type is System.Collections.DictionaryEntry. The name must be of the type System.String and is limited to 255 characters. The value can be of the type System.String,System.Boolean, System.Int32 or System.Double.

Introduced: 24.0.


[C#] public class UserDefinedPropertyDictionary : System.Collections.DictionaryBase
[Visual Basic] Public Class UserDefinedPropertyDictionary : System.Collections.DictionaryBase


UserDefinedPropertyDictionaryInitializes a new instance of the UserDefinedPropertyDictionary class.


NamesGets a collection of all property names the dictionary contains.
ValuesGets a collection of all property values the dictionary contains.


AddAdds a new property to the dictionary.
ContainsDetermines whether the dictionary contains a property with the specified name.
ItemGets a document property from the dictionary.
RemoveRemoves a document property from the dictionary.

See Also

Call us: +1 704-544-7445 (United States)





Buy Now

About Text Control

Founded in 1991, Text Control is an award-winning Visual Studio Industry Partner and leading vendor of word processing and reporting components for Microsoft development technologies. The products help thousands of developers add comprehensive word processing functionality to their applications. Text Control is 100% self-owned and independent of all investor decisions. Customers benefit from these years of experience, large user-base, and at the same time, appreciate developing with a mature, reliable product.

SD Times 100SD Times 100SD Times 100SD Times 100SD Times 100SD Times 100Visual Studio 2015 Launch PartnerVisual Studio 2013 Launch PartnerVisual Studio 2012 Launch PartnerVisual Studio Partner