AvatarUtils Class
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Framework.Server.AvatarUtils
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public NotInheritable Class AvatarUtils
public static class AvatarUtils
public ref class AvatarUtils abstract sealed
[<AbstractClass>]
[<Sealed>]
type AvatarUtils = class end
public final class AvatarUtils
The AvatarUtils type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() ![]() |
GenerateAvatar | Generates a random avatar with the following specs: i. Background: Solid color (chosen via Round Robin from a predefined color palette) ii. Foreground: First two initials of the display name in white |
![]() ![]() |
GetRandomDefaultAvatarColor | |
![]() ![]() |
MapToColor | |
![]() ![]() |
ToInitials | Extracts the initials (first two) of a string. If no characters present in the string then an empty string is returned. |
Top
Fields
Name | Description | |
---|---|---|
![]() ![]() |
LargeAvatarPixelSize | |
![]() ![]() |
MaxAvatarHeightInPixels | |
![]() ![]() |
MaxAvatarWidthInPixels | |
![]() ![]() |
MediumAvatarPixelSize | |
![]() ![]() |
MinAvatarHeightInPixels | |
![]() ![]() |
MinAvatarWidthInPixels | |
![]() ![]() |
SmallAvatarPixelSize |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.