C# Class MvcBreadCrumbs.BreadCrumb

Mostrar archivo Open project: thelarz/MvcBreadCrumbs

Private Properties

Property Type Description
IsCurrentPage bool

Public Methods

Method Description
Add ( string url, string label ) : void
Clear ( ) : void
Display ( string cssClassOverride = "breadcrumb" ) : string
DisplayRaw ( ) : string
GetCurrentUrl ( ) : string

Get the currently active URL from the BreadCrumb

GetOrderedRedirections ( ) : IEnumerable

Get the full list of RedirectResult currently in the breadcrumb. Index 0 being the farthest page.

GetOrderedUrls ( ) : IEnumerable

Get the full list of URL currently in the breadcrumb. Index 0 being the farthest page.

GetPreviousUrl ( ) : string

Get the URL of the preceeding item from the BreadCrumb

RedirectToPreviousUrl ( ) : RedirectResult

Redirects

SetLabel ( string label ) : void

Private Methods

Method Description
IsCurrentPage ( int compareKey ) : bool

Method Details

Add() public static method

public static Add ( string url, string label ) : void
url string
label string
return void

Clear() public static method

public static Clear ( ) : void
return void

Display() public static method

public static Display ( string cssClassOverride = "breadcrumb" ) : string
cssClassOverride string
return string

DisplayRaw() public static method

public static DisplayRaw ( ) : string
return string

GetCurrentUrl() public static method

Get the currently active URL from the BreadCrumb
public static GetCurrentUrl ( ) : string
return string

GetOrderedRedirections() public static method

Get the full list of RedirectResult currently in the breadcrumb. Index 0 being the farthest page.
public static GetOrderedRedirections ( ) : IEnumerable
return IEnumerable

GetOrderedUrls() public static method

Get the full list of URL currently in the breadcrumb. Index 0 being the farthest page.
public static GetOrderedUrls ( ) : IEnumerable
return IEnumerable

GetPreviousUrl() public static method

Get the URL of the preceeding item from the BreadCrumb
public static GetPreviousUrl ( ) : string
return string

RedirectToPreviousUrl() public static method

Redirects
public static RedirectToPreviousUrl ( ) : RedirectResult
return RedirectResult

SetLabel() public static method

public static SetLabel ( string label ) : void
label string
return void