Back to Devexpress

DocumentProperties.Version Property

officefileapi-devexpress-dot-spreadsheet-dot-documentproperties-b91c4b7c.md

latest2.1 KB
Original Source

DocumentProperties.Version Property

Gets or sets the version of the application used to create or modify the document.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
string Version { get; set; }
vb
Property Version As String

Property Value

TypeDescription
String

The version number.

|

Remarks

If you create or modify a workbook in code - or via the Spreadsheet control’s UI - and do not specify the Version value, the Spreadsheet sets this property to the DevExpress major version used in your application (for example, 25.2).

Specify the Version Value

csharp
workbook.DocumentProperties.Application = "My Application v1.0.0.0";
workbook.DocumentProperties.Version = "1.0";
vb
workbook.DocumentProperties.Application = "My Application v1.0.0.0"
workbook.DocumentProperties.Version = "1.0"

Important

The Version property string is limited to 255 characters.

Clear the Version Value

csharp
workbook.DocumentProperties.Version = "";
vb
workbook.DocumentProperties.Version = ""

See Also

DocumentProperties

Custom

DocumentProperties Interface

DocumentProperties Members

DevExpress.Spreadsheet Namespace