Xceed Words for .NET v5.1 Documentation
Xceed.Document.NET Assembly / Xceed.Document.NET Namespace / Document Class / AddCustomProperty Method


In This Topic
    AddCustomProperty Method
    In This Topic
    Adds a custom property to the Document.
    Syntax
    'Declaration
     
    Public Sub AddCustomProperty( _
       ByVal cp As CustomProperty _
    ) 
    'Usage
     
    Dim instance As Document
    Dim cp As CustomProperty
     
    instance.AddCustomProperty(cp)
    public void AddCustomProperty( 
       CustomProperty cp
    )

    Parameters

    cp
    Remarks

    Upon creation of a new property, if one already exists with the same name, the new property will automatically replace the old one.

    Note that CustomProperty names are case insensitive.

    Also note that even though this method works, it is less efficient than the AddCustomProperties method.

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows, 11, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also