C# Class Site.Extensions.IsHelpers

Show file Open project: perploug/JubRazorExtensions

Public Methods

Method Description
IsAncestor ( this content, Content child, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsAncestorOrSelf ( this content, Content child, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsDescendant ( this content, Content ancestor, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsDescendantOrSelf ( this content, Content ancestor, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsEqual ( this content, Content comparer, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsFirst ( this content, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsLast ( this content, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsNotFirst ( this content, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsNotLast ( this content, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsNotPosition ( this content, int position, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsPosition ( this content, int position, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
IsVisible ( this content ) : bool

Method Details

IsAncestor() public static method

public static IsAncestor ( this content, Content child, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
child Content
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsAncestorOrSelf() public static method

public static IsAncestorOrSelf ( this content, Content child, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
child Content
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsDescendant() public static method

public static IsDescendant ( this content, Content ancestor, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
ancestor Content
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsDescendantOrSelf() public static method

public static IsDescendantOrSelf ( this content, Content ancestor, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
ancestor Content
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsEqual() public static method

public static IsEqual ( this content, Content comparer, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
comparer Content
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsFirst() public static method

public static IsFirst ( this content, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsLast() public static method

public static IsLast ( this content, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsNotFirst() public static method

public static IsNotFirst ( this content, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsNotLast() public static method

public static IsNotLast ( this content, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsNotPosition() public static method

public static IsNotPosition ( this content, int position, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
position int
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsPosition() public static method

public static IsPosition ( this content, int position, string valueIfTrue, string valueIfFalse ) : System.Web.HtmlString
content this
position int
valueIfTrue string
valueIfFalse string
return System.Web.HtmlString

IsVisible() public static method

public static IsVisible ( this content ) : bool
content this
return bool