C# Class OfficeOpenXml.OfficeProperties

Provides access to the properties bag of any office document (i.e. Word, Excel etc.)
Exibir arquivo Open project: ylatuya/EPPlus Class Usage Examples

Public Methods

Method Description
GetCustomPropertyValue ( string propertyName ) : object

Gets the value of a custom property

SetCustomPropertyValue ( string propertyName, object value ) : void

Allows you to set the value of a current custom property or create your own custom property.

Private Methods

Method Description
GetExtendedPropertyValue ( string propertyName ) : string
GetXmlDocument ( string startXml, Uri uri, string contentType, string relationship ) : XmlDocument
OfficeProperties ( ExcelPackage package, XmlNamespaceManager ns ) : System

Provides access to all the office document properties.

Save ( ) : void

Saves the document properties back to the package.

Method Details

GetCustomPropertyValue() public method

Gets the value of a custom property
public GetCustomPropertyValue ( string propertyName ) : object
propertyName string The name of the property
return object

SetCustomPropertyValue() public method

Allows you to set the value of a current custom property or create your own custom property.
public SetCustomPropertyValue ( string propertyName, object value ) : void
propertyName string The name of the property
value object The value of the property
return void