Click or drag to resize

DocumentProperty Class

Represents a property of a document.
Inheritance Hierarchy
System Object
Spire.Xls DocumentProperty

Namespace: Spire.Xls
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public class DocumentProperty : IDocumentProperty

The DocumentProperty type exposes the following members.

Properties
Name Description
Public property Blob
Gets / sets Blob value.
Public property Boolean
Gets / sets boolean value.
Public property DateTime
Gets / sets DateTime value.
Public property Double
Gets / sets double value.
Public property Int32
Gets / sets 4-bytes signed integer value.
Public property Integer
Gets / sets integer value.
Public property InternalName
Gets the internal name of the object.
Public property IsBuiltIn
Indicates whether property is built-in. Read-only.
Public property LinkSource
Returns or sets the source of a linked custom document property. Read/write String.
Public property LinkToContent
True if the value of the custom document property is linked to the content of the container document. False if the value is static. Read/write Boolean.
Public property Name
Returns property name. Read-only.
Public property PropertyId
Returns property id for built-in properties. Read-only.
Public property PropertyType
Gets / sets document property type.
Public property Text
Gets / sets string value.
Public property TimeSpan
Gets / sets TimeSpan value.
Public property Value
Gets / sets property value.
Top
Methods
Name Description
Public method Clone Obsolete.
Creates a new object that is a copy of the current instance.
Public method Static member CorrectIndex
Converts propertyId into correct index.
Public method Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object .)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object .)
Public method GetHashCode
Serves as the default hash function.
(Inherited from Object .)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object .)
Protected method MemberwiseClone
Creates a shallow copy of the current Object .
(Inherited from Object .)
Public method SetLinkSource
Sets the link source from the provided IPropertyData object. Validates that the variant is not null and has a type of VT_LPSTR or VT_LPWSTR. Converts the variant value to a string and assigns it to the LinkSource property.
Public method ToString
Returns a string that represents the current object.
(Inherited from Object .)
Top
Fields
Name Description
Public field Static member DEF_FILE_TIME_START_YEAR
The default file time start year, typically set to 1600.
Top
See Also