UI\HTMLTextWriter.cs (118)
30public virtual void EnterStyle(Style style, HtmlTextWriterTag tag) {
31if (!style.IsEmpty || tag != HtmlTextWriterTag.Span) {
37public virtual void ExitStyle(System.Web.UI.WebControls.Style style, HtmlTextWriterTag tag) {
39if (!style.IsEmpty || tag != HtmlTextWriterTag.Span) {
120private HtmlTextWriterTag _tagKey;
126_tagKeyLookupTable = new Hashtable((int)HtmlTextWriterTag.Xml + 1);
127_tagNameLookupArray = new TagInformation[(int)HtmlTextWriterTag.Xml + 1];
129RegisterTag(String.Empty, HtmlTextWriterTag.Unknown, TagType.Other);
130RegisterTag("a", HtmlTextWriterTag.A, TagType.Inline);
131RegisterTag("acronym", HtmlTextWriterTag.Acronym, TagType.Inline);
132RegisterTag("address", HtmlTextWriterTag.Address, TagType.Other);
133RegisterTag("area", HtmlTextWriterTag.Area, TagType.NonClosing);
134RegisterTag("b", HtmlTextWriterTag.B, TagType.Inline);
135RegisterTag("base", HtmlTextWriterTag.Base, TagType.NonClosing);
136RegisterTag("basefont", HtmlTextWriterTag.Basefont, TagType.NonClosing);
137RegisterTag("bdo", HtmlTextWriterTag.Bdo, TagType.Inline);
138RegisterTag("bgsound", HtmlTextWriterTag.Bgsound, TagType.NonClosing);
139RegisterTag("big", HtmlTextWriterTag.Big, TagType.Inline);
140RegisterTag("blockquote", HtmlTextWriterTag.Blockquote, TagType.Other);
141RegisterTag("body", HtmlTextWriterTag.Body, TagType.Other);
143RegisterTag("br", HtmlTextWriterTag.Br,
145RegisterTag("button", HtmlTextWriterTag.Button, TagType.Inline);
146RegisterTag("caption", HtmlTextWriterTag.Caption, TagType.Other);
147RegisterTag("center", HtmlTextWriterTag.Center, TagType.Other);
148RegisterTag("cite", HtmlTextWriterTag.Cite, TagType.Inline);
149RegisterTag("code", HtmlTextWriterTag.Code, TagType.Inline);
150RegisterTag("col", HtmlTextWriterTag.Col, TagType.NonClosing);
151RegisterTag("colgroup", HtmlTextWriterTag.Colgroup, TagType.Other);
152RegisterTag("del", HtmlTextWriterTag.Del, TagType.Inline);
153RegisterTag("dd", HtmlTextWriterTag.Dd, TagType.Inline);
154RegisterTag("dfn", HtmlTextWriterTag.Dfn, TagType.Inline);
155RegisterTag("dir", HtmlTextWriterTag.Dir, TagType.Other);
156RegisterTag("div", HtmlTextWriterTag.Div, TagType.Other);
157RegisterTag("dl", HtmlTextWriterTag.Dl, TagType.Other);
158RegisterTag("dt", HtmlTextWriterTag.Dt, TagType.Inline);
159RegisterTag("em", HtmlTextWriterTag.Em, TagType.Inline);
160RegisterTag("embed", HtmlTextWriterTag.Embed, TagType.NonClosing);
161RegisterTag("fieldset", HtmlTextWriterTag.Fieldset, TagType.Other);
162RegisterTag("font", HtmlTextWriterTag.Font, TagType.Inline);
163RegisterTag("form", HtmlTextWriterTag.Form, TagType.Other);
164RegisterTag("frame", HtmlTextWriterTag.Frame, TagType.NonClosing);
165RegisterTag("frameset", HtmlTextWriterTag.Frameset, TagType.Other);
166RegisterTag("h1", HtmlTextWriterTag.H1, TagType.Other);
167RegisterTag("h2", HtmlTextWriterTag.H2, TagType.Other);
168RegisterTag("h3", HtmlTextWriterTag.H3, TagType.Other);
169RegisterTag("h4", HtmlTextWriterTag.H4, TagType.Other);
170RegisterTag("h5", HtmlTextWriterTag.H5, TagType.Other);
171RegisterTag("h6", HtmlTextWriterTag.H6, TagType.Other);
172RegisterTag("head", HtmlTextWriterTag.Head, TagType.Other);
173RegisterTag("hr", HtmlTextWriterTag.Hr, TagType.NonClosing);
174RegisterTag("html", HtmlTextWriterTag.Html, TagType.Other);
175RegisterTag("i", HtmlTextWriterTag.I, TagType.Inline);
176RegisterTag("iframe", HtmlTextWriterTag.Iframe, TagType.Other);
177RegisterTag("img", HtmlTextWriterTag.Img, TagType.NonClosing);
178RegisterTag("input", HtmlTextWriterTag.Input, TagType.NonClosing);
179RegisterTag("ins", HtmlTextWriterTag.Ins, TagType.Inline);
180RegisterTag("isindex", HtmlTextWriterTag.Isindex, TagType.NonClosing);
181RegisterTag("kbd", HtmlTextWriterTag.Kbd, TagType.Inline);
182RegisterTag("label", HtmlTextWriterTag.Label, TagType.Inline);
183RegisterTag("legend", HtmlTextWriterTag.Legend, TagType.Other);
184RegisterTag("li", HtmlTextWriterTag.Li, TagType.Inline);
185RegisterTag("link", HtmlTextWriterTag.Link, TagType.NonClosing);
186RegisterTag("map", HtmlTextWriterTag.Map, TagType.Other);
187RegisterTag("marquee", HtmlTextWriterTag.Marquee, TagType.Other);
188RegisterTag("menu", HtmlTextWriterTag.Menu, TagType.Other);
189RegisterTag("meta", HtmlTextWriterTag.Meta, TagType.NonClosing);
190RegisterTag("nobr", HtmlTextWriterTag.Nobr, TagType.Inline);
191RegisterTag("noframes", HtmlTextWriterTag.Noframes, TagType.Other);
192RegisterTag("noscript", HtmlTextWriterTag.Noscript, TagType.Other);
193RegisterTag("object", HtmlTextWriterTag.Object, TagType.Other);
194RegisterTag("ol", HtmlTextWriterTag.Ol, TagType.Other);
195RegisterTag("option", HtmlTextWriterTag.Option, TagType.Other);
196RegisterTag("p", HtmlTextWriterTag.P, TagType.Inline);
197RegisterTag("param", HtmlTextWriterTag.Param, TagType.Other);
198RegisterTag("pre", HtmlTextWriterTag.Pre, TagType.Other);
199RegisterTag("ruby", HtmlTextWriterTag.Ruby, TagType.Other);
200RegisterTag("rt", HtmlTextWriterTag.Rt, TagType.Other);
201RegisterTag("q", HtmlTextWriterTag.Q, TagType.Inline);
202RegisterTag("s", HtmlTextWriterTag.S, TagType.Inline);
203RegisterTag("samp", HtmlTextWriterTag.Samp, TagType.Inline);
204RegisterTag("script", HtmlTextWriterTag.Script, TagType.Other);
205RegisterTag("select", HtmlTextWriterTag.Select, TagType.Other);
206RegisterTag("small", HtmlTextWriterTag.Small, TagType.Other);
207RegisterTag("span", HtmlTextWriterTag.Span, TagType.Inline);
208RegisterTag("strike", HtmlTextWriterTag.Strike, TagType.Inline);
209RegisterTag("strong", HtmlTextWriterTag.Strong, TagType.Inline);
210RegisterTag("style", HtmlTextWriterTag.Style, TagType.Other);
211RegisterTag("sub", HtmlTextWriterTag.Sub, TagType.Inline);
212RegisterTag("sup", HtmlTextWriterTag.Sup, TagType.Inline);
213RegisterTag("table", HtmlTextWriterTag.Table, TagType.Other);
214RegisterTag("tbody", HtmlTextWriterTag.Tbody, TagType.Other);
215RegisterTag("td", HtmlTextWriterTag.Td, TagType.Inline);
216RegisterTag("textarea", HtmlTextWriterTag.Textarea, TagType.Inline);
217RegisterTag("tfoot", HtmlTextWriterTag.Tfoot, TagType.Other);
218RegisterTag("th", HtmlTextWriterTag.Th, TagType.Inline);
219RegisterTag("thead", HtmlTextWriterTag.Thead, TagType.Other);
220RegisterTag("title", HtmlTextWriterTag.Title, TagType.Other);
221RegisterTag("tr", HtmlTextWriterTag.Tr, TagType.Other);
222RegisterTag("tt", HtmlTextWriterTag.Tt, TagType.Inline);
223RegisterTag("u", HtmlTextWriterTag.U, TagType.Inline);
224RegisterTag("ul", HtmlTextWriterTag.Ul, TagType.Other);
225RegisterTag("var", HtmlTextWriterTag.Var, TagType.Inline);
226RegisterTag("wbr", HtmlTextWriterTag.Wbr, TagType.NonClosing);
227RegisterTag("xml", HtmlTextWriterTag.Xml, TagType.Other);
357EnterStyle(style, HtmlTextWriterTag.Span);
361ExitStyle(style, HtmlTextWriterTag.Span);
608protected static void RegisterTag(string name, HtmlTextWriterTag key) {
612private static void RegisterTag(string name, HtmlTextWriterTag key, TagType type) {
619if (type != TagType.NonClosing && key != HtmlTextWriterTag.Unknown) {
670protected HtmlTextWriterTag TagKey {
682if (value != HtmlTextWriterTag.Unknown) {
847protected virtual HtmlTextWriterTag GetTagKey(string tagName) {
851return(HtmlTextWriterTag)key;
854return HtmlTextWriterTag.Unknown;
857protected virtual string GetTagName(HtmlTextWriterTag tagKey) {
913protected virtual bool OnTagRender(string name, HtmlTextWriterTag key) {
976public virtual void RenderBeginTag(HtmlTextWriterTag tagKey) {
1375public HtmlTextWriterTag tagKey;