Class XlsxDocumentProperties
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
What a workbook says about itself in its core properties part: the title, the subject, the author, the keywords, the comments and the category Excel shows under File, Info.
public sealed class XlsxDocumentProperties
- Inheritance
-
XlsxDocumentProperties
- Inherited Members
Remarks
Read, not set. A property the workbook does not state is null.
Properties
- Category
Gets or sets the category; null for none. Setting it writes the core properties part (made when the workbook has none).
- Created
Gets or sets when the workbook was made (
dcterms:created, in UTC); null for not stated.
- Creator
Gets or sets the author (the part's
dc:creator); null for none. Setting it writes the core properties part (made when the workbook has none).
- Custom
Gets the custom properties (File, Info, Properties, Advanced, Custom), in the order the workbook lists them.
- Description
Gets or sets the comments (the part's
dc:description); null for none. Setting it writes the core properties part (made when the workbook has none).
- Keywords
Gets or sets the keywords (Excel's Tags); null for none. Setting it writes the core properties part (made when the workbook has none).
- LastModifiedBy
Gets or sets who saved the workbook last (
cp:lastModifiedBy); null for none. Setting it writes the core properties part (made when the workbook has none).
- Modified
Gets or sets when the workbook was last saved (
dcterms:modified, in UTC); null for not stated. Never set to now by this library.
- Subject
Gets or sets the subject; null for none. Setting it writes the core properties part (made when the workbook has none).
- Title
Gets or sets the title; null for none. Setting it writes the core properties part (made when the workbook has none).
Methods
- GetCustom(string)
Returns a custom property's value by its name, without regard to case; null when there is none.
- RemoveCustom(string)
Removes a custom property by its name, without regard to case.
- SetCustom(string, object)
Sets a custom property: a string (text), an int (number), a double or a decimal (number with decimals), a bool (yes or no) or a DateTime (date, written in UTC); added after the others when the workbook has no property of the name.