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