Search Results for

    Show / Hide Table of Contents

    TDocumentProperties.SetCustomProperty Method

    This method only works in xlsx files. Sets a custom property with a given name. Set the value to null or empty string to remove the property.

    Syntax

    Namespace: FlexCel.Core

    public void SetCustomProperty(String name, TDocumentCustomPropertyType proptype, String value, Int32 propertyId)

    Parameters

    <-> Parameter Type Description
    name String Name of the custom property you want to create or modify.
    proptype TDocumentCustom​Property​Type Type of the property (boolean, string, etc.)
    value String Value for the property. Note that while it is a string, it must be convertible to the type you are specifying. Doubles should use "." as decimal separators.
    propertyId Int32 Numeric Id for the property. This value must be unique and bigger or equal to 2.

    See also

    • TDocumentProperties
    In This Article
    Back to top FlexCel Studio for the .NET Framework v7.24.0.0
    © 2002 - 2025 tmssoftware.com