Search Results for

    Show / Hide Table of Contents
    View Source

    Class IconController

    Inheritance
    System.Object
    UmbracoApiControllerBase
    UmbracoApiController
    Namespace: Umbraco.Web.Editors
    Assembly: Umbraco.Web.dll
    Syntax
    [PluginController("UmbracoApi")]
    public class IconController : UmbracoApiController, IDiscoverable

    Constructors

    View Source

    IconController(IIconService)

    Declaration
    public IconController(IIconService iconService)
    Parameters
    Type Name Description
    IIconService iconService

    Methods

    View Source

    GetAllIcons()

    Gets a list of all svg icons found at at the global icons path.

    Declaration
    [Obsolete("This method should not be used - use GetIcons instead")]
    public IList<IconModel> GetAllIcons()
    Returns
    Type Description
    System.Collections.Generic.IList<IconModel>
    View Source

    GetIcon(String)

    Gets an IconModel containing the icon name and SvgString according to an icon name found at the global icons path

    Declaration
    public IconModel GetIcon(string iconName)
    Parameters
    Type Name Description
    System.String iconName
    Returns
    Type Description
    IconModel
    View Source

    GetIcons()

    Gets a list of all svg icons found at at the global icons path.

    Declaration
    public JsonNetResult GetIcons()
    Returns
    Type Description
    JsonNetResult
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • IconController(IIconService)
    • Methods
      • GetAllIcons()
      • GetIcon(String)
      • GetIcons()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX