WeavyHtmlExtensions.AvatarImg Method

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

Overloads

AvatarImg(File, int, bool, Color?, bool, object, int?, int?)
AvatarImg(IHasAvatar, int, bool, Color?, bool, object, int?, int?, bool, bool) Returns the avatar image for the specified item.
AvatarImg(Notification, int, bool, Color?, bool, object, int?, int?)
AvatarImg(Post, int, bool, Color?, bool, object, int?, int?)

AvatarImg(File, int, bool, Color?, bool, object, int?, int?)

public static MvcHtmlString AvatarImg(this File file, int size = 48, bool retina = true, Color? background = default(Color? ), bool absolute = false, object htmlAttributes = null, int? width = default(int? ), int? height = default(int? ))

Parameters

file
File
size
int
retina
bool
background
System.Drawing.Color?
absolute
bool
htmlAttributes
object
width
int?
height
int?

Returns

System.Web.Mvc.MvcHtmlString

AvatarImg(IHasAvatar, int, bool, Color?, bool, object, int?, int?, bool, bool)

Returns the avatar image for the specified item.

public static MvcHtmlString AvatarImg(this IHasAvatar item, 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, bool rasterize = false)

Parameters

item
IHasAvatar
size
int
retina
bool
background
System.Drawing.Color?
absolute
bool
htmlAttributes
object
width
int?
height
int?
presence
bool

true to add presence status to the image, otherwise false.

rasterize
bool

Returns

System.Web.Mvc.MvcHtmlString

AvatarImg(Notification, int, bool, Color?, bool, object, int?, int?)

public static MvcHtmlString AvatarImg(this Notification item, int size = 48, bool retina = true, Color? background = default(Color? ), bool absolute = false, object htmlAttributes = null, int? width = default(int? ), int? height = default(int? ))

Parameters

size
int
retina
bool
background
System.Drawing.Color?
absolute
bool
htmlAttributes
object
width
int?
height
int?

Returns

System.Web.Mvc.MvcHtmlString

AvatarImg(Post, int, bool, Color?, bool, object, int?, int?)

public static MvcHtmlString AvatarImg(this Post item, int size = 48, bool retina = true, Color? background = default(Color? ), bool absolute = false, object htmlAttributes = null, int? width = default(int? ), int? height = default(int? ))

Parameters

item
Post
size
int
retina
bool
background
System.Drawing.Color?
absolute
bool
htmlAttributes
object
width
int?
height
int?

Returns

System.Web.Mvc.MvcHtmlString