Back to Devexpress

DocumentProperties.AppVersion Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-documentproperties-ca0b4b44.md

latest2.4 KB
Original Source

DocumentProperties.AppVersion Property

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

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

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

Property Value

TypeDescription
String

The application version. The default is 25.2

|

Remarks

The AppVersion value should be in X.Y format, where X > 0.

The code sample below shows how to specify the AppVersion property:

csharp
using DevExpress.XtraRichEdit.API.Native;

private void AddNewProperties(RichEditDocumentServer wordProcessor)
{
    Document document = wordProcessor.Document;
    document.BeginUpdate();

    document.DocumentProperties.Manager = "John Doe";
    document.DocumentProperties.Company = "TestDoc";
    document.DocumentProperties.Application = "My Application";
    document.DocumentProperties.Template = "MyTemplate.dotm";
    document.DocumentProperties.AppVersion = "2.0";

    document.EndUpdate();
}
vb
Imports DevExpress.XtraRichEdit.API.Native

Private Sub AddNewProperties(ByVal wordProcessor As RichEditDocumentServer)
  Dim document As Document = wordProcessor.Document
  document.BeginUpdate()

  document.DocumentProperties.Manager = "John Doe"
  document.DocumentProperties.Company = "TestDoc"
  document.DocumentProperties.Application = "My Application"
  document.DocumentProperties.Template = "MyTemplate.dotm"
  document.DocumentProperties.AppVersion = "2.0"

  document.EndUpdate()
End Sub

See Also

DocumentProperties Interface

DocumentProperties Members

DevExpress.XtraRichEdit.API.Native Namespace