C# Class StoryTeller.Util.HtmlDocument

Exibir arquivo Open project: storyteller/Storyteller Class Usage Examples

Public Properties

Property Type Description
FileOpener Action
FileWriter string>.Action

Public Methods

Method Description
Add ( string tagName ) : HtmlTag
Add ( HtmlTag tag ) : void
AddJavaScript ( string javascript ) : HtmlTag
AddScript ( string scriptType, string scriptContents ) : HtmlTag
AddStyle ( string styling ) : HtmlTag
HtmlDocument ( ) : System
OpenInBrowser ( ) : void
Pop ( ) : void
Push ( string tagName ) : HtmlTag
Push ( HtmlTag tag ) : void
PushWithoutAttaching ( HtmlTag tag ) : void
ReferenceJavaScriptFile ( string path ) : HtmlTag
ReferenceScriptFile ( string scriptType, string path ) : HtmlTag
ReferenceStyle ( string path ) : HtmlTag
Rewind ( ) : void
ToString ( ) : string
WriteToFile ( string fileName ) : void

Protected Methods

Method Description
GetPath ( ) : string

Private Methods

Method Description
EnsureFolderExists ( string fileName ) : void
OpenFile ( string fileName ) : void
Substitute ( string value ) : string
WriteToFile ( string fileName, string fileContents ) : void

Method Details

Add() public method

public Add ( string tagName ) : HtmlTag
tagName string
return HtmlTag

Add() public method

public Add ( HtmlTag tag ) : void
tag HtmlTag
return void

AddJavaScript() public method

public AddJavaScript ( string javascript ) : HtmlTag
javascript string
return HtmlTag

AddScript() public method

public AddScript ( string scriptType, string scriptContents ) : HtmlTag
scriptType string
scriptContents string
return HtmlTag

AddStyle() public method

public AddStyle ( string styling ) : HtmlTag
styling string
return HtmlTag

GetPath() protected method

protected GetPath ( ) : string
return string

HtmlDocument() public method

public HtmlDocument ( ) : System
return System

OpenInBrowser() public method

public OpenInBrowser ( ) : void
return void

Pop() public method

public Pop ( ) : void
return void

Push() public method

public Push ( string tagName ) : HtmlTag
tagName string
return HtmlTag

Push() public method

public Push ( HtmlTag tag ) : void
tag HtmlTag
return void

PushWithoutAttaching() public method

public PushWithoutAttaching ( HtmlTag tag ) : void
tag HtmlTag
return void

ReferenceJavaScriptFile() public method

public ReferenceJavaScriptFile ( string path ) : HtmlTag
path string
return HtmlTag

ReferenceScriptFile() public method

public ReferenceScriptFile ( string scriptType, string path ) : HtmlTag
scriptType string
path string
return HtmlTag

ReferenceStyle() public method

public ReferenceStyle ( string path ) : HtmlTag
path string
return HtmlTag

Rewind() public method

public Rewind ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

WriteToFile() public method

public WriteToFile ( string fileName ) : void
fileName string
return void

Property Details

FileOpener public_oe property

public Action FileOpener
return Action

FileWriter public_oe property

public Action FileWriter
return string>.Action