BuiltInDocumentPropertiesTotalEditingTime Property |
Gets or sets the total editing time in minutes.
Syntax
public int TotalEditingTime { get; set; }
Public Property TotalEditingTime As Integer
Get
Set
public:
property int TotalEditingTime {
int get ();
void set (int value);
}
member TotalEditingTime : int with get, set
Property Value
Type:
Int32
Examples
Shows how to work with document properties in the "Origin" category.
Document doc = new Document(MyDir + "Properties.docx");
BuiltInDocumentProperties properties = doc.BuiltInDocumentProperties;
Console.WriteLine($"Created using {properties.NameOfApplication}, on {properties.CreatedTime}");
Console.WriteLine($"Minutes spent editing: {properties.TotalEditingTime}");
Console.WriteLine($"Date/time last printed: {properties.LastPrinted}");
Console.WriteLine($"Template document: {properties.Template}");
properties.Company = "Doe Ltd.";
properties.Manager = "Jane Doe";
properties.Version = 5;
properties.RevisionNumber++;
properties.LastSavedBy = "John Doe";
properties.LastSavedTime = DateTime.Now;
doc.Save(ArtifactsDir + "DocumentProperties.Origin.docx");
See Also