Class OfficeProperties
- Namespace
- OfficeOpenXml
- Assembly
- EPPlus.dll
Provides access to the properties bag of the package
public sealed class OfficeProperties : XmlHelper
- Inheritance
-
OfficeProperties
- Inherited Members
Properties
AppVersion
Gets/Set the AppVersion property of the document (extended property)
public string AppVersion { get; set; }
Property Value
Application
Gets/Set the Application property of the document (extended property)
public string Application { get; set; }
Property Value
Author
Gets/sets the author property of the document (core property)
public string Author { get; set; }
Property Value
Category
Gets/sets the category property of the document (core property)
public string Category { get; set; }
Property Value
Comments
Gets/sets the comments property of the document (core property)
public string Comments { get; set; }
Property Value
Company
Gets/sets the Company property of the document (extended property)
public string Company { get; set; }
Property Value
CorePropertiesXml
Provides access to the XML document that holds all the code document properties.
public XmlDocument CorePropertiesXml { get; }
Property Value
- XmlDocument
Created
Gets/sets the created property of the document (core property)
public DateTime Created { get; set; }
Property Value
CustomPropertiesXml
Provides access to the XML document which holds the document's custom properties
public XmlDocument CustomPropertiesXml { get; }
Property Value
- XmlDocument
ExtendedPropertiesXml
Provides access to the XML document that holds the extended properties of the document (app.xml)
public XmlDocument ExtendedPropertiesXml { get; }
Property Value
- XmlDocument
HyperlinkBase
Gets/sets the HyperlinkBase property of the document (extended property)
public Uri HyperlinkBase { get; set; }
Property Value
- Uri
HyperlinksChanged
Hyperlinks need update
public bool HyperlinksChanged { get; set; }
Property Value
Keywords
Gets/sets the keywords property of the document (core property)
public string Keywords { get; set; }
Property Value
LastModifiedBy
Gets/sets the lastModifiedBy property of the document (core property)
public string LastModifiedBy { get; set; }
Property Value
LastPrinted
Gets/sets the lastPrinted property of the document (core property)
public string LastPrinted { get; set; }
Property Value
LinksUpToDate
Indicates whether hyperlinks in a document are up-to-date
public bool LinksUpToDate { get; set; }
Property Value
Manager
Gets/sets the Manager property of the document (extended property)
public string Manager { get; set; }
Property Value
Modified
Gets/sets the modified property of the document (core property)
public DateTime Modified { get; set; }
Property Value
ScaleCrop
Display mode of the document thumbnail. True to enable scaling. False to enable cropping.
public bool ScaleCrop { get; set; }
Property Value
SharedDoc
If true, document is shared between multiple producers.
public bool SharedDoc { get; set; }
Property Value
Status
Gets/sets the status property of the document (core property)
public string Status { get; set; }
Property Value
Subject
Gets/sets the subject property of the document (core property)
public string Subject { get; set; }
Property Value
Title
Gets/sets the title property of the document (core property)
public string Title { get; set; }
Property Value
Methods
GetCustomPropertyValue(string)
Gets the value of a custom property
public object GetCustomPropertyValue(string propertyName)
Parameters
propertyNamestringThe name of the property
Returns
- object
The current value of the property
GetExtendedPropertyValue(string)
Get the value of an extended property
public string GetExtendedPropertyValue(string propertyName)
Parameters
propertyNamestringThe name of the property
Returns
- string
The value
SetCustomPropertyValue(string, object)
Allows you to set the value of a current custom property or create your own custom property.
public void SetCustomPropertyValue(string propertyName, object value)
Parameters
SetExtendedPropertyValue(string, string)
Set the value for an extended property
public void SetExtendedPropertyValue(string propertyName, string value)