Table of Contents

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

string

Application

Gets/Set the Application property of the document (extended property)

public string Application { get; set; }

Property Value

string

Author

Gets/sets the author property of the document (core property)

public string Author { get; set; }

Property Value

string

Category

Gets/sets the category property of the document (core property)

public string Category { get; set; }

Property Value

string

Comments

Gets/sets the comments property of the document (core property)

public string Comments { get; set; }

Property Value

string

Company

Gets/sets the Company property of the document (extended property)

public string Company { get; set; }

Property Value

string

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

DateTime

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

bool

Keywords

Gets/sets the keywords property of the document (core property)

public string Keywords { get; set; }

Property Value

string

LastModifiedBy

Gets/sets the lastModifiedBy property of the document (core property)

public string LastModifiedBy { get; set; }

Property Value

string

LastPrinted

Gets/sets the lastPrinted property of the document (core property)

public string LastPrinted { get; set; }

Property Value

string

LinksUpToDate

Indicates whether hyperlinks in a document are up-to-date

public bool LinksUpToDate { get; set; }

Property Value

bool

Manager

Gets/sets the Manager property of the document (extended property)

public string Manager { get; set; }

Property Value

string

Modified

Gets/sets the modified property of the document (core property)

public DateTime Modified { get; set; }

Property Value

DateTime

ScaleCrop

Display mode of the document thumbnail. True to enable scaling. False to enable cropping.

public bool ScaleCrop { get; set; }

Property Value

bool

SharedDoc

If true, document is shared between multiple producers.

public bool SharedDoc { get; set; }

Property Value

bool

Status

Gets/sets the status property of the document (core property)

public string Status { get; set; }

Property Value

string

Subject

Gets/sets the subject property of the document (core property)

public string Subject { get; set; }

Property Value

string

Title

Gets/sets the title property of the document (core property)

public string Title { get; set; }

Property Value

string

Methods

GetCustomPropertyValue(string)

Gets the value of a custom property

public object GetCustomPropertyValue(string propertyName)

Parameters

propertyName string

The 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

propertyName string

The 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

propertyName string

The name of the property

value object

The value of the property

SetExtendedPropertyValue(string, string)

Set the value for an extended property

public void SetExtendedPropertyValue(string propertyName, string value)

Parameters

propertyName string

The name of the property

value string

The value