Search Results for

    Show / Hide Table of Contents

    Class ImageUrl

    helps building path to get pictures from blob storage

    Inheritance
    Object
    ImageUrl
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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: {Image relative path. Mandatory};{Image alternative text and title. Optional} ODIN examples: Pict"image.png;alternative text" *Pict"image.png;alt=alternative text" *Pict"image.png;alt=alternative text title=this is the title" /// *Pict"image.png;title=this is the title alt=alternative text" *Pict"image.png;title=this is the title" *Pict"image.png;alt=alternative text title=you must use escape characters to write " and title="*the title will be you must use escape characters to write " and title=;

    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: {Image relative path. Mandatory};{Image alternative text and title. Optional} ODIN examples: Pict"image.png;alternative text" *Pict"image.png;alt=alternative text" *Pict"image.png;alt=alternative text title=this is the title" /// *Pict"image.png;title=this is the title alt=alternative text" *Pict"image.png;title=this is the title" *Pict"image.png;alt=alternative text title=you must use escape characters to write " and title="*the title will be you must use escape characters to write " and title=;

    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: {Image relative path. Mandatory};{Image alternative text and title. Optional} ODIN examples: Pict"onlyImage.png"The alt the will be 'only image' *Pict"image.png;alternative text" *Pict"image.png;alt=alternative text" *Pict"image.png;alt=alternative text title=this is the title" /// *Pict"image.png;title=this is the title alt=alternative text" *Pict"image.png;title=this is the title" *Pict"image.png;alt=alternative text title=you must use escape characters to write " and title="*the title will be 'you must use escape characters to write " and title='

    Returns
    Type Description
    String
    In This Article
    Back to top Generated by DocFX