Class ImageUrl
helps building path to get pictures from blob storage
Inherited Members
Namespace: NipoSoftware.Nfield.Web.Interviewing.Helpers
Assembly: NipoSoftware.Nfield.TemplateHelpers.dll
Syntax
public static class ImageUrl
Methods
GetAltText(String)
Get the alternative text for the html img tag
Declaration
public static string GetAltText(string imageDefinition)
Parameters
Type | Name | Description |
---|---|---|
String | imageDefinition | image definition: |
Returns
Type | Description |
---|---|
String | An alternative text for the Img tag |
GetTitle(String)
Get the title for the html img tag
Declaration
public static string GetTitle(string imageDefinition)
Parameters
Type | Name | Description |
---|---|---|
String | imageDefinition | image definition: |
Returns
Type | Description |
---|---|
String | Atitle for the Img tag |
Humanize(String)
Creates a readeable string from one in Pascal style(capitalizing first letter of each word). TODO: Move this extension methods to NipoSoftware.StringExtensions (not now to prevent causing errors with chicago in old environments)
Declaration
public static string Humanize(this string pascalText)
Parameters
Type | Name | Description |
---|---|---|
String | pascalText |
Returns
Type | Description |
---|---|
String |
Resolve(String)
constructs a path to get a picture from blob storage
Declaration
public static string Resolve(string imageDefinition)
Parameters
Type | Name | Description |
---|---|---|
String | imageDefinition | image definition: |
Returns
Type | Description |
---|---|
String |