UniverUser
Univer User’s data from the UserManager
public struct UniverUser
Remarks
This struct represents a Univer platform user, including identification, display name, avatar, and user type information.
Properties
Property | Type | Description |
---|---|---|
id | string | User id |
name | string | User’s name |
avatar | string | Image of the user (in Data Uri format) |
Type | UniverUserType | User’s type |
Methods
GetUserType
public UniverUserType GetUserType()
Get the user’s type
Returns
UniverUserType: Resolved user type from ID content
SetUserType
public void SetUserType(UniverUserType type)
Set the user type
Parameters
Parameter | Type | Description |
---|---|---|
type | UniverUserType | New type for the User ID |