officefileapi-devexpress-dot-spreadsheet-dot-iworkbook-7ff58c62.md
Gets the system username.
Namespace : DevExpress.Spreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
string CurrentAuthor { get; }
ReadOnly Property CurrentAuthor As String
| Type | Description |
|---|---|
| String |
A String value that specifies the username of the person currently logged on the operating system.
|
You can use the CurrentAuthor property to specify an author of cell comments (see the How to: Add a Comment To a Cell example).
The following code snippets (auto-collected from DevExpress Examples) contain references to the CurrentAuthor 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.
winforms-spreadsheetcontrol-api-part1/CS/SpreadsheetControl/SpreadsheetActions/CellActions.cs#L472
// Get the system username.
string author = workbook.CurrentAuthor;
// Get the system username.
string author = workbook.CurrentAuthor;
winforms-spreadsheetcontrol-api-part1/VB/SpreadsheetControl/SpreadsheetActions/CellActions.vb#L433
' Get the system username.
Dim author As String = workbook.CurrentAuthor
' Get the system username.
Dim author As String = workbook.CurrentAuthor
See Also