Back to Devexpress

IDocumentInfo.DocumentId Property

aspnet-devexpress-dot-web-dot-office-dot-idocumentinfo.md

latest5.0 KB
Original Source

IDocumentInfo.DocumentId Property

Gets the document’s unique identifier.

Namespace : DevExpress.Web.Office

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
string DocumentId { get; }
vb
ReadOnly Property DocumentId As String

Property Value

TypeDescription
String

The document’s unique identifier.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the DocumentId property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

asp-net-web-forms-richedit-work-with-database/CS/ASPxRichEdit_Binding/Default.aspx.cs#L22

csharp
if(!string.IsNullOrEmpty(EditedDocuemntID)) {
    DocumentManager.CloseDocument(DocumentManager.FindDocument(EditedDocuemntID).DocumentId);
    EditedDocuemntID = string.Empty;

asp-net-web-forms-spreadsheet-work-with-database/CS/ASPxSpreadsheetBinding/Default.aspx.cs#L18

csharp
if(!string.IsNullOrEmpty(EditedDocumentID)) {
    DocumentManager.CloseDocument(DocumentManager.FindDocument(EditedDocumentID).DocumentId);
    EditedDocumentID = string.Empty;

asp-net-web-forms-spreadsheet-download-file-on-custom-ribbon-item-click/CS/ASPxSpreadsheetBinding/Default.aspx.cs#L63

csharp
void CloseSpreadsheetDocument() {
    DocumentManager.CloseDocument(DocumentManager.FindDocument(EditedDocuemntID).DocumentId);
    EditedDocuemntID = string.Empty;

asp-net-web-forms-richedit-work-with-database/VB/ASPxRichEdit_Binding/Default.aspx.vb#L32

vb
If Not String.IsNullOrEmpty(EditedDocuemntID) Then
    Call DocumentManager.CloseDocument(DocumentManager.FindDocument(EditedDocuemntID).DocumentId)
    EditedDocuemntID = String.Empty

asp-net-web-forms-spreadsheet-work-with-database/VB/ASPxSpreadsheetBinding/Default.aspx.vb#L28

vb
If Not String.IsNullOrEmpty(EditedDocumentID) Then
    Call DocumentManager.CloseDocument(DocumentManager.FindDocument(EditedDocumentID).DocumentId)
    EditedDocumentID = String.Empty

asp-net-web-forms-spreadsheet-download-file-on-custom-ribbon-item-click/VB/ASPxSpreadsheetBinding/Default.aspx.vb#L70

vb
Private Sub CloseSpreadsheetDocument()
    Call DocumentManager.CloseDocument(DocumentManager.FindDocument(EditedDocuemntID).DocumentId)
    EditedDocuemntID = String.Empty

See Also

DocumentId

ASPxRichEdit.DocumentId

ASPxSpreadsheet.DocumentId

DocumentID

FindDocument

Create a Document

Open a Document

Share a Document

IDocumentInfo Interface

IDocumentInfo Members

DevExpress.Web.Office Namespace