C# Class ZenCoding.HtmlElementFactory

Show file Open project: madskristensen/zencoding Class Usage Examples

Public Methods

Method Description
CloneElement ( this element, int count ) : HtmlControl
Create ( string tagName ) : HtmlControl
Create ( string tagName, Type type ) : HtmlControl
Create ( string tagName, Type type, bool isClone ) : HtmlControl
CreateDoctypes ( string part, IEnumerable &current ) : Control
Increment ( this text, int count ) : string

Private Methods

Method Description
GetDoctype ( string key ) : string
TryCreateFromStateMachine ( string tagName ) : HtmlControl
TryCreateSepcialControl ( string tagName, Type type, bool isClone ) : HtmlControl

Method Details

CloneElement() public static method

public static CloneElement ( this element, int count ) : HtmlControl
element this
count int
return System.Web.UI.HtmlControls.HtmlControl

Create() public static method

public static Create ( string tagName ) : HtmlControl
tagName string
return System.Web.UI.HtmlControls.HtmlControl

Create() public static method

public static Create ( string tagName, Type type ) : HtmlControl
tagName string
type System.Type
return System.Web.UI.HtmlControls.HtmlControl

Create() public static method

public static Create ( string tagName, Type type, bool isClone ) : HtmlControl
tagName string
type System.Type
isClone bool
return System.Web.UI.HtmlControls.HtmlControl

CreateDoctypes() public static method

public static CreateDoctypes ( string part, IEnumerable &current ) : Control
part string
current IEnumerable
return System.Web.UI.Control

Increment() public static method

public static Increment ( this text, int count ) : string
text this
count int
return string