WeavyHtmlExtensions.AvatarLink Method

Namespace:
Weavy.Web.Extensions
Assembly:
Weavy.Web.dll

AvatarLink(IHasAvatar, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable, Boolean)

Returns an avatar image that links to the specified entity.

public static MvcHtmlString AvatarLink(this IHasAvatar entity, int size = 48, bool retina = true, Color? background = default(Color? ), bool absolute = false, object htmlAttributes = null, int? width = default(int? ), int? height = default(int? ), bool presence = false)

Parameters

entity
IHasAvatar
size
System.Int32
retina
System.Boolean
background
System.Nullable{System.Drawing.Color}
absolute
System.Boolean
htmlAttributes
System.Object
width
System.Nullable{System.Int32}
height
System.Nullable{System.Int32}
presence
System.Boolean

Returns

System.Web.Mvc.MvcHtmlString