Back to Devexpress

IWorkbook.CurrentAuthor Property

officefileapi-devexpress-dot-spreadsheet-dot-iworkbook-7ff58c62.md

latest3.4 KB
Original Source

IWorkbook.CurrentAuthor Property

Gets the system username.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

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

Property Value

TypeDescription
String

A String value that specifies the username of the person currently logged on the operating system.

|

Remarks

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

csharp
// Get the system username.
string author = workbook.CurrentAuthor;

wpf-spreadsheetcontrol-api-part-1/CS/SpreadsheetControl_WPF_API/SpreadsheetActions/CellActions.cs#L437

csharp
// Get the system username.
string author = workbook.CurrentAuthor;

winforms-spreadsheetcontrol-api-part1/VB/SpreadsheetControl/SpreadsheetActions/CellActions.vb#L433

vb
' Get the system username.
Dim author As String = workbook.CurrentAuthor

wpf-spreadsheetcontrol-api-part-1/VB/SpreadsheetControl_WPF_API/SpreadsheetActions/CellActions.vb#L392

vb
' Get the system username.
Dim author As String = workbook.CurrentAuthor

See Also

IWorkbook Interface

IWorkbook Members

DevExpress.Spreadsheet Namespace