WeavyHtmlExtensions.AvatarImg Method

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

Overloads

AvatarImg(File, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable)
AvatarImg(IHasAvatar, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable, Boolean, Boolean) Returns the avatar image for the specified item.
AvatarImg(Notification, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable)
AvatarImg(Post, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable)

AvatarImg(File, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable)

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
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}

Returns

System.Web.Mvc.MvcHtmlString

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

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
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
rasterize
System.Boolean

Returns

System.Web.Mvc.MvcHtmlString

AvatarImg(Notification, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable)

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
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}

Returns

System.Web.Mvc.MvcHtmlString

AvatarImg(Post, Int32, Boolean, Nullable, Boolean, Object, Nullable, Nullable)

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
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}

Returns

System.Web.Mvc.MvcHtmlString