C# Class StoryTeller.Util.HtmlTextWriter

Inheritance: System.IO.TextWriter
Exibir arquivo Open project: storyteller/Storyteller

Public Properties

Property Type Description
Encoder System.Text.Encodings.Web.HtmlEncoder

Public Methods

Method Description
AddAttribute ( HtmlTextWriterAttribute key, string value ) : void
AddAttribute ( HtmlTextWriterAttribute key, string value, bool fEncode ) : void
AddAttribute ( string name, string value ) : void
AddAttribute ( string name, string value, bool fEndode ) : void
Flush ( ) : void
HtmlTextWriter ( TextWriter writer ) : System
HtmlTextWriter ( TextWriter writer, string tabString ) : System
RenderBeginTag ( HtmlTextWriterTag tagKey ) : void
RenderBeginTag ( string tagName ) : void
RenderEndTag ( ) : void
Write ( bool value ) : void
Write ( char value ) : void
Write ( char buffer, int index, int count ) : void
Write ( double value ) : void
Write ( float value ) : void
Write ( int value ) : void
Write ( long value ) : void
Write ( object value ) : void
Write ( string s ) : void
Write ( string format, object arg0 ) : void
Write ( string format, object arg0, object arg1 ) : void
WriteAttribute ( string name, string value ) : void
WriteAttribute ( string name, string value, bool fEncode ) : void
WriteBeginTag ( string tagName ) : void
WriteBreak ( ) : void
WriteEncodedText ( String text ) : void
WriteEndTag ( string tagName ) : void
WriteFullBeginTag ( string tagName ) : void
WriteLine ( ) : void
WriteLine ( UInt32 value ) : void
WriteLine ( bool value ) : void
WriteLine ( char value ) : void
WriteLine ( char buffer, int index, int count ) : void
WriteLine ( double value ) : void
WriteLine ( float value ) : void
WriteLine ( int value ) : void
WriteLine ( long value ) : void
WriteLine ( object value ) : void
WriteLine ( string s ) : void
WriteLine ( string format, object arg0 ) : void
WriteLine ( string format, object arg0, object arg1 ) : void
WriteLineNoTabs ( string s ) : void
WriteStyleAttribute ( string name, string value ) : void
WriteStyleAttribute ( string name, string value, bool fEncode ) : void

Protected Methods

Method Description
AddAttribute ( string name, string value, HtmlTextWriterAttribute key ) : void
EncodeAttributeValue ( HtmlTextWriterAttribute attrKey, string value ) : string
EncodeAttributeValue ( string value, bool fEncode ) : string
EncodeUrl ( string url ) : string
FilterAttributes ( ) : void
GetAttributeKey ( string attrName ) : HtmlTextWriterAttribute
GetAttributeName ( HtmlTextWriterAttribute attrKey ) : string
GetTagKey ( string tagName ) : HtmlTextWriterTag
GetTagName ( HtmlTextWriterTag tagKey ) : string
IsAttributeDefined ( HtmlTextWriterAttribute key ) : bool
IsAttributeDefined ( HtmlTextWriterAttribute key, string &value ) : bool
OnAttributeRender ( string name, string value, HtmlTextWriterAttribute key ) : bool
OnTagRender ( string name, HtmlTextWriterTag key ) : bool
OutputTabs ( ) : void
PopEndTag ( ) : string
PushEndTag ( string endTag ) : void
RegisterAttribute ( string name, HtmlTextWriterAttribute key ) : void
RegisterTag ( string name, HtmlTextWriterTag key ) : void
RenderAfterContent ( ) : string
RenderAfterTag ( ) : string
RenderBeforeContent ( ) : string
RenderBeforeTag ( ) : string

Private Methods

Method Description
AddAttribute ( string name, string value, HtmlTextWriterAttribute key, bool encode, bool isUrl ) : void
HtmlTextWriter ( ) : System
RegisterAttribute ( string name, HtmlTextWriterAttribute key, bool encode ) : void
RegisterAttribute ( string name, HtmlTextWriterAttribute key, bool encode, bool isUrl ) : void
RegisterTag ( string name, HtmlTextWriterTag key, TagType type ) : void
WriteHtmlAttributeEncode ( string s ) : void
WriteObsoleteBreak ( ) : void

Method Details

AddAttribute() public method

public AddAttribute ( HtmlTextWriterAttribute key, string value ) : void
key HtmlTextWriterAttribute
value string
return void

AddAttribute() public method

public AddAttribute ( HtmlTextWriterAttribute key, string value, bool fEncode ) : void
key HtmlTextWriterAttribute
value string
fEncode bool
return void

AddAttribute() public method

public AddAttribute ( string name, string value ) : void
name string
value string
return void

AddAttribute() protected method

protected AddAttribute ( string name, string value, HtmlTextWriterAttribute key ) : void
name string
value string
key HtmlTextWriterAttribute
return void

AddAttribute() public method

public AddAttribute ( string name, string value, bool fEndode ) : void
name string
value string
fEndode bool
return void

EncodeAttributeValue() protected method

protected EncodeAttributeValue ( HtmlTextWriterAttribute attrKey, string value ) : string
attrKey HtmlTextWriterAttribute
value string
return string

EncodeAttributeValue() protected method

protected EncodeAttributeValue ( string value, bool fEncode ) : string
value string
fEncode bool
return string

EncodeUrl() protected method

protected EncodeUrl ( string url ) : string
url string
return string

FilterAttributes() protected method

protected FilterAttributes ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

GetAttributeKey() protected method

protected GetAttributeKey ( string attrName ) : HtmlTextWriterAttribute
attrName string
return HtmlTextWriterAttribute

GetAttributeName() protected method

protected GetAttributeName ( HtmlTextWriterAttribute attrKey ) : string
attrKey HtmlTextWriterAttribute
return string

GetTagKey() protected method

protected GetTagKey ( string tagName ) : HtmlTextWriterTag
tagName string
return HtmlTextWriterTag

GetTagName() protected method

protected GetTagName ( HtmlTextWriterTag tagKey ) : string
tagKey HtmlTextWriterTag
return string

HtmlTextWriter() public method

public HtmlTextWriter ( TextWriter writer ) : System
writer System.IO.TextWriter
return System

HtmlTextWriter() public method

public HtmlTextWriter ( TextWriter writer, string tabString ) : System
writer System.IO.TextWriter
tabString string
return System

IsAttributeDefined() protected method

protected IsAttributeDefined ( HtmlTextWriterAttribute key ) : bool
key HtmlTextWriterAttribute
return bool

IsAttributeDefined() protected method

protected IsAttributeDefined ( HtmlTextWriterAttribute key, string &value ) : bool
key HtmlTextWriterAttribute
value string
return bool

OnAttributeRender() protected method

protected OnAttributeRender ( string name, string value, HtmlTextWriterAttribute key ) : bool
name string
value string
key HtmlTextWriterAttribute
return bool

OnTagRender() protected method

protected OnTagRender ( string name, HtmlTextWriterTag key ) : bool
name string
key HtmlTextWriterTag
return bool

OutputTabs() protected method

protected OutputTabs ( ) : void
return void

PopEndTag() protected method

protected PopEndTag ( ) : string
return string

PushEndTag() protected method

protected PushEndTag ( string endTag ) : void
endTag string
return void

RegisterAttribute() protected static method

protected static RegisterAttribute ( string name, HtmlTextWriterAttribute key ) : void
name string
key HtmlTextWriterAttribute
return void

RegisterTag() protected static method

protected static RegisterTag ( string name, HtmlTextWriterTag key ) : void
name string
key HtmlTextWriterTag
return void

RenderAfterContent() protected method

protected RenderAfterContent ( ) : string
return string

RenderAfterTag() protected method

protected RenderAfterTag ( ) : string
return string

RenderBeforeContent() protected method

protected RenderBeforeContent ( ) : string
return string

RenderBeforeTag() protected method

protected RenderBeforeTag ( ) : string
return string

RenderBeginTag() public method

public RenderBeginTag ( HtmlTextWriterTag tagKey ) : void
tagKey HtmlTextWriterTag
return void

RenderBeginTag() public method

public RenderBeginTag ( string tagName ) : void
tagName string
return void

RenderEndTag() public method

public RenderEndTag ( ) : void
return void

Write() public method

public Write ( bool value ) : void
value bool
return void

Write() public method

public Write ( char value ) : void
value char
return void

Write() public method

public Write ( char buffer, int index, int count ) : void
buffer char
index int
count int
return void

Write() public method

public Write ( double value ) : void
value double
return void

Write() public method

public Write ( float value ) : void
value float
return void

Write() public method

public Write ( int value ) : void
value int
return void

Write() public method

public Write ( long value ) : void
value long
return void

Write() public method

public Write ( object value ) : void
value object
return void

Write() public method

public Write ( string s ) : void
s string
return void

Write() public method

public Write ( string format, object arg0 ) : void
format string
arg0 object
return void

Write() public method

public Write ( string format, object arg0, object arg1 ) : void
format string
arg0 object
arg1 object
return void

WriteAttribute() public method

public WriteAttribute ( string name, string value ) : void
name string
value string
return void

WriteAttribute() public method

public WriteAttribute ( string name, string value, bool fEncode ) : void
name string
value string
fEncode bool
return void

WriteBeginTag() public method

public WriteBeginTag ( string tagName ) : void
tagName string
return void

WriteBreak() public method

public WriteBreak ( ) : void
return void

WriteEncodedText() public method

public WriteEncodedText ( String text ) : void
text String
return void

WriteEndTag() public method

public WriteEndTag ( string tagName ) : void
tagName string
return void

WriteFullBeginTag() public method

public WriteFullBeginTag ( string tagName ) : void
tagName string
return void

WriteLine() public method

public WriteLine ( ) : void
return void

WriteLine() public method

public WriteLine ( UInt32 value ) : void
value System.UInt32
return void

WriteLine() public method

public WriteLine ( bool value ) : void
value bool
return void

WriteLine() public method

public WriteLine ( char value ) : void
value char
return void

WriteLine() public method

public WriteLine ( char buffer, int index, int count ) : void
buffer char
index int
count int
return void

WriteLine() public method

public WriteLine ( double value ) : void
value double
return void

WriteLine() public method

public WriteLine ( float value ) : void
value float
return void

WriteLine() public method

public WriteLine ( int value ) : void
value int
return void

WriteLine() public method

public WriteLine ( long value ) : void
value long
return void

WriteLine() public method

public WriteLine ( object value ) : void
value object
return void

WriteLine() public method

public WriteLine ( string s ) : void
s string
return void

WriteLine() public method

public WriteLine ( string format, object arg0 ) : void
format string
arg0 object
return void

WriteLine() public method

public WriteLine ( string format, object arg0, object arg1 ) : void
format string
arg0 object
arg1 object
return void

WriteLineNoTabs() public method

public WriteLineNoTabs ( string s ) : void
s string
return void

WriteStyleAttribute() public method

public WriteStyleAttribute ( string name, string value ) : void
name string
value string
return void

WriteStyleAttribute() public method

public WriteStyleAttribute ( string name, string value, bool fEncode ) : void
name string
value string
fEncode bool
return void

Property Details

Encoder public_oe static_oe property

public static HtmlEncoder,System.Text.Encodings.Web Encoder
return System.Text.Encodings.Web.HtmlEncoder