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
Public methodStatic member 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
Public methodStatic member GetRandomDefaultAvatarColor
Public methodStatic member MapToColor
Public methodStatic member 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
Public fieldStatic member LargeAvatarPixelSize
Public fieldStatic member MaxAvatarHeightInPixels
Public fieldStatic member MaxAvatarWidthInPixels
Public fieldStatic member MediumAvatarPixelSize
Public fieldStatic member MinAvatarHeightInPixels
Public fieldStatic member MinAvatarWidthInPixels
Public fieldStatic member 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.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace