Html32TextWriter クラス
アセンブリ: System.Web (system.web.dll 内)


Html32TextWriter クラスは、HtmlTextWriter クラスの代替クラスです。HTML 4.0 のスタイル属性を HTML 3.2 の等価のタグと属性に変換します。このクラスは、HTML テーブルを使用して、色やフォントなどの属性の反映を標準化したものです。ASP.NET は、HttpBrowserCapabilities クラスの TagWriter プロパティをチェックして、HTML 3.2 以前のブラウザに対してこのクラスを自動的に使用します。HTML 3.2 マークアップを使用するデバイスをターゲットとするカスタム ページ アダプタまたはカスタム コントロール アダプタを作成しない場合には、Html32TextWriter クラスのインスタンスを明示的に作成する必要はありません。
ページとコントロールのレンダリングをカスタマイズする方法の詳細については、「チュートリアル : カスタム サーバー コントロールの開発と使用」を参照してください。

Html32TextWriter クラスから派生した CustomHtml32TextWriter という名前のクラスを使用する方法を次のコード例に示します。CustomHtml32TextWriter は、HtmlTextWriter クラスによって作成されるパターンに従った 2 つのコンストラクタを作成し、RenderBeforeContent、RenderAfterContent、RenderBeforeTag、および RenderAfterTag の各メソッドをオーバーライドしています。
' Create a custom HtmlTextWriter class that overrides ' the RenderBeforeContent and RenderAfterContent methods. Imports System Imports System.IO Imports System.Web.UI Namespace Examples.AspNet Public Class CustomHtml32TextWriter Inherits Html32TextWriter ' Create a constructor for the class ' that takes a TextWriter as a parameter. Public Sub New(ByVal writer As TextWriter) Me.New(writer, DefaultTabString) End Sub ' Create a constructor for the class that takes ' a TextWriter and a string as parameters. Public Sub New(ByVal writer As TextWriter, ByVal tabString As String) MyBase.New(writer, tabString) End Sub ' Override the RenderBeforeContent method to render ' styles before rendering the content of a <th> element. Protected Overrides Function RenderBeforeContent() As String ' Check the TagKey property. If its value is ' HtmlTextWriterTag.TH, check the value of the ' SupportsBold property. If true, return the ' opening tag of a <b> element; otherwise, render ' the opening tag of a <font> element with a color ' attribute set to the hexadecimal value for red. If TagKey = HtmlTextWriterTag.Th Then If (SupportsBold) Then Return "<b>" Else Return "<font color=""FF0000"">" End If End If ' Check whether the element being rendered ' is an <H4> element. If it is, check the ' value of the SupportsItalic property. ' If true, render the opening tag of the <i> element ' prior to the <H4> element's content; otherwise, ' render the opening tag of a <font> element ' with a color attribute set to the hexadecimal ' value for navy blue. If TagKey = HtmlTextWriterTag.H4 Then If (SupportsItalic) Then Return "<i>" Else Return "<font color=""000080"">" End If End If ' Call the base method. Return MyBase.RenderBeforeContent() End Function ' Override the RenderAfterContent method to close ' styles opened during the call to the RenderBeforeContent ' method. Protected Overrides Function RenderAfterContent() As String ' Check whether the element being rendered is a <th> element. ' If so, and the requesting device supports bold formatting , ' render the closing tag of the <b> element. If not , ' render the closing tag of the <font> element. If TagKey = HtmlTextWriterTag.Th Then If SupportsBold Then Return "</b>" Else Return "</font>" End If End If ' Check whether the element being rendered is an <H4>. ' element. If so, and the requesting device supports italic ' formatting, render the closing tag of the <i> element. ' If not, render the closing tag of the <font> element. If TagKey = HtmlTextWriterTag.H4 Then If (SupportsItalic) Then Return "</i>" Else Return "</font>" End If End If ' Call the base method. Return MyBase.RenderAfterContent() End Function ' Override the RenderBeforeTag method to render the ' opening tag of a <small> element to modify the text size of ' any <a> elements that this writer encounters. Protected Overrides Function RenderBeforeTag() As String ' Check whether the element being rendered is an ' <a> element. If so, render the opening tag ' of the <small> element; otherwise, call the base method. If TagKey = HtmlTextWriterTag.A Then Return "<small>" End If Return MyBase.RenderBeforeTag() End Function ' Override the RenderAfterTag method to render ' close any elements opened in the RenderBeforeTag ' method call. Protected Overrides Function RenderAfterTag() As String ' Check whether the element being rendered is an ' <a> element. If so, render the closing tag of the ' <small> element; otherwise, call the base method. If TagKey = HtmlTextWriterTag.A Then Return "</small>" End If Return MyBase.RenderAfterTag() End Function End Class End Namespace
using System.IO; using System.Web.UI; namespace Examples.AspNet { public class CustomHtml32TextWriter : Html32TextWriter { // Create a constructor for the class // that takes a TextWriter as a parameter. public CustomHtml32TextWriter(TextWriter writer) : this(writer, DefaultTabString) { } // Create a constructor for the class that takes // a TextWriter and a string as parameters. public CustomHtml32TextWriter(TextWriter writer, String tabString) : base(writer, tabString) { } // Override the RenderBeforeContent method to render // styles before rendering the content of a <th> element. protected override string RenderBeforeContent() { // Check the TagKey property. If its value is // HtmlTextWriterTag.TH, check the value of the // SupportsBold property. If true, return the // opening tag of a <b> element; otherwise, render // the opening tag of a <font> element with a color // attribute set to the hexadecimal value for red. if (TagKey == HtmlTextWriterTag.Th) { if (SupportsBold) return "<b>"; else return "<font color=\"FF0000\">"; } // Check whether the element being rendered // is an <H4> element. If it is, check the // value of the SupportsItalic property. // If true, render the opening tag of the <i> element // prior to the <H4> element's content; otherwise, // render the opening tag of a <font> element // with a color attribute set to the hexadecimal // value for navy blue. if (TagKey == HtmlTextWriterTag.H4) { if (SupportsItalic) return "<i>"; else return "<font color=\"000080\">"; } // Call the base method. return base.RenderBeforeContent(); } // Override the RenderAfterContent method to close // styles opened during the call to the RenderBeforeContent // method. protected override string RenderAfterContent() { // Check whether the element being rendered is a <th> element. // If so, and the requesting device supports bold formatting , // render the closing tag of the <b> element. If not , // render the closing tag of the <font> element. if (TagKey == HtmlTextWriterTag.Th) { if (SupportsBold) return "</b>"; else return "</font>"; } // Check whether the element being rendered is an <H4>. // element. If so, and the requesting device supports italic // formatting, render the closing tag of the <i> element. // If not, render the closing tag of the <font> element. if (TagKey == HtmlTextWriterTag.H4) { if (SupportsItalic) return "</i>"; else return "</font>"; } // Call the base method return base.RenderAfterContent(); } // Override the RenderBeforeTag method to render the // opening tag of a <small> element to modify the text size of // any <a> elements that this writer encounters. protected override string RenderBeforeTag() { // Check whether the element being rendered is an // <a> element. If so, render the opening tag // of the <small> element; otherwise, call the base method. if (TagKey == HtmlTextWriterTag.A) return "<small>"; return base.RenderBeforeTag(); } // Override the RenderAfterTag method to render // close any elements opened in the RenderBeforeTag // method call. protected override string RenderAfterTag() { // Check whether the element being rendered is an // <a> element. If so, render the closing tag of the // <small> element; otherwise, call the base method. if (TagKey == HtmlTextWriterTag.A) return "</small>"; return base.RenderAfterTag(); } } }


System.MarshalByRefObject
System.IO.TextWriter
System.Web.UI.HtmlTextWriter
System.Web.UI.Html32TextWriter
System.Web.UI.ChtmlTextWriter


Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Html32TextWriter コンストラクタ (TextWriter, String)
アセンブリ: System.Web (system.web.dll 内)

Dim writer As TextWriter Dim tabString As String Dim instance As New Html32TextWriter(writer, tabString)
public Html32TextWriter ( TextWriter writer, string tabString )
public: Html32TextWriter ( TextWriter^ writer, String^ tabString )
public Html32TextWriter ( TextWriter writer, String tabString )
- writer
HMTL 3.2 コンテンツをレンダリングする TextWriter。

Html32TextWriter クラスから派生したカスタム クラスを使用する方法のコード例を次に示します。2 つのコンストラクタが使用されています。この方法は、HtmlTextWriter クラスから直接または間接的に派生したすべてのクラスに対して標準的な方法です。
' Create a custom HtmlTextWriter class that overrides ' the RenderBeforeContent and RenderAfterContent methods. Imports System Imports System.IO Imports System.Web.UI Namespace Examples.AspNet Public Class CustomHtml32TextWriter Inherits Html32TextWriter ' Create a constructor for the class ' that takes a TextWriter as a parameter. Public Sub New(ByVal writer As TextWriter) Me.New(writer, DefaultTabString) End Sub ' Create a constructor for the class that takes ' a TextWriter and a string as parameters. Public Sub New(ByVal writer As TextWriter, ByVal tabString As String) MyBase.New(writer, tabString) End Sub ' Override the RenderBeforeContent method to render ' styles before rendering the content of a <th> element. Protected Overrides Function RenderBeforeContent() As String ' Check the TagKey property. If its value is ' HtmlTextWriterTag.TH, check the value of the ' SupportsBold property. If true, return the ' opening tag of a <b> element; otherwise, render ' the opening tag of a <font> element with a color ' attribute set to the hexadecimal value for red. If TagKey = HtmlTextWriterTag.Th Then If (SupportsBold) Then Return "<b>" Else Return "<font color=""FF0000"">" End If End If ' Check whether the element being rendered ' is an <H4> element. If it is, check the ' value of the SupportsItalic property. ' If true, render the opening tag of the <i> element ' prior to the <H4> element's content; otherwise, ' render the opening tag of a <font> element ' with a color attribute set to the hexadecimal ' value for navy blue. If TagKey = HtmlTextWriterTag.H4 Then If (SupportsItalic) Then Return "<i>" Else Return "<font color=""000080"">" End If End If ' Call the base method. Return MyBase.RenderBeforeContent() End Function ' Override the RenderAfterContent method to close ' styles opened during the call to the RenderBeforeContent ' method. Protected Overrides Function RenderAfterContent() As String ' Check whether the element being rendered is a <th> element. ' If so, and the requesting device supports bold formatting , ' render the closing tag of the <b> element. If not , ' render the closing tag of the <font> element. If TagKey = HtmlTextWriterTag.Th Then If SupportsBold Then Return "</b>" Else Return "</font>" End If End If ' Check whether the element being rendered is an <H4>. ' element. If so, and the requesting device supports italic ' formatting, render the closing tag of the <i> element. ' If not, render the closing tag of the <font> element. If TagKey = HtmlTextWriterTag.H4 Then If (SupportsItalic) Then Return "</i>" Else Return "</font>" End If End If ' Call the base method. Return MyBase.RenderAfterContent() End Function ' Override the RenderBeforeTag method to render the ' opening tag of a <small> element to modify the text size of ' any <a> elements that this writer encounters. Protected Overrides Function RenderBeforeTag() As String ' Check whether the element being rendered is an ' <a> element. If so, render the opening tag ' of the <small> element; otherwise, call the base method. If TagKey = HtmlTextWriterTag.A Then Return "<small>" End If Return MyBase.RenderBeforeTag() End Function ' Override the RenderAfterTag method to render ' close any elements opened in the RenderBeforeTag ' method call. Protected Overrides Function RenderAfterTag() As String ' Check whether the element being rendered is an ' <a> element. If so, render the closing tag of the ' <small> element; otherwise, call the base method. If TagKey = HtmlTextWriterTag.A Then Return "</small>" End If Return MyBase.RenderAfterTag() End Function End Class End Namespace
using System.IO; using System.Web.UI; namespace Examples.AspNet { public class CustomHtml32TextWriter : Html32TextWriter { // Create a constructor for the class // that takes a TextWriter as a parameter. public CustomHtml32TextWriter(TextWriter writer) : this(writer, DefaultTabString) { } // Create a constructor for the class that takes // a TextWriter and a string as parameters. public CustomHtml32TextWriter(TextWriter writer, String tabString) : base(writer, tabString) { } // Override the RenderBeforeContent method to render // styles before rendering the content of a <th> element. protected override string RenderBeforeContent() { // Check the TagKey property. If its value is // HtmlTextWriterTag.TH, check the value of the // SupportsBold property. If true, return the // opening tag of a <b> element; otherwise, render // the opening tag of a <font> element with a color // attribute set to the hexadecimal value for red. if (TagKey == HtmlTextWriterTag.Th) { if (SupportsBold) return "<b>"; else return "<font color=\"FF0000\">"; } // Check whether the element being rendered // is an <H4> element. If it is, check the // value of the SupportsItalic property. // If true, render the opening tag of the <i> element // prior to the <H4> element's content; otherwise, // render the opening tag of a <font> element // with a color attribute set to the hexadecimal // value for navy blue. if (TagKey == HtmlTextWriterTag.H4) { if (SupportsItalic) return "<i>"; else return "<font color=\"000080\">"; } // Call the base method. return base.RenderBeforeContent(); } // Override the RenderAfterContent method to close // styles opened during the call to the RenderBeforeContent // method. protected override string RenderAfterContent() { // Check whether the element being rendered is a <th> element. // If so, and the requesting device supports bold formatting , // render the closing tag of the <b> element. If not , // render the closing tag of the <font> element. if (TagKey == HtmlTextWriterTag.Th) { if (SupportsBold) return "</b>"; else return "</font>"; } // Check whether the element being rendered is an <H4>. // element. If so, and the requesting device supports italic // formatting, render the closing tag of the <i> element. // If not, render the closing tag of the <font> element. if (TagKey == HtmlTextWriterTag.H4) { if (SupportsItalic) return "</i>"; else return "</font>"; } // Call the base method return base.RenderAfterContent(); } // Override the RenderBeforeTag method to render the // opening tag of a <small> element to modify the text size of // any <a> elements that this writer encounters. protected override string RenderBeforeTag() { // Check whether the element being rendered is an // <a> element. If so, render the opening tag // of the <small> element; otherwise, call the base method. if (TagKey == HtmlTextWriterTag.A) return "<small>"; return base.RenderBeforeTag(); } // Override the RenderAfterTag method to render // close any elements opened in the RenderBeforeTag // method call. protected override string RenderAfterTag() { // Check whether the element being rendered is an // <a> element. If so, render the closing tag of the // <small> element; otherwise, call the base method. if (TagKey == HtmlTextWriterTag.A) return "</small>"; return base.RenderAfterTag(); } } }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Html32TextWriter コンストラクタ (TextWriter)
アセンブリ: System.Web (system.web.dll 内)

Public Sub New ( _ writer As TextWriter _ )
public Html32TextWriter ( TextWriter writer )
public: Html32TextWriter ( TextWriter^ writer )
public Html32TextWriter ( TextWriter writer )
public function Html32TextWriter ( writer : TextWriter )
- writer
HMTL コンテンツをレンダリングする TextWriter。


Html32TextWriter クラスから派生したカスタム クラスを使用する方法を次のコード例に示します。2 つのコンストラクタが使用されています。この方法は、HtmlTextWriter クラスから直接または間接的に派生したすべてのクラスに対して標準的な方法です。
' Create a custom HtmlTextWriter class that overrides ' the RenderBeforeContent and RenderAfterContent methods. Imports System Imports System.IO Imports System.Web.UI Namespace Examples.AspNet Public Class CustomHtml32TextWriter Inherits Html32TextWriter ' Create a constructor for the class ' that takes a TextWriter as a parameter. Public Sub New(ByVal writer As TextWriter) Me.New(writer, DefaultTabString) End Sub ' Create a constructor for the class that takes ' a TextWriter and a string as parameters. Public Sub New(ByVal writer As TextWriter, ByVal tabString As String) MyBase.New(writer, tabString) End Sub ' Override the RenderBeforeContent method to render ' styles before rendering the content of a <th> element. Protected Overrides Function RenderBeforeContent() As String ' Check the TagKey property. If its value is ' HtmlTextWriterTag.TH, check the value of the ' SupportsBold property. If true, return the ' opening tag of a <b> element; otherwise, render ' the opening tag of a <font> element with a color ' attribute set to the hexadecimal value for red. If TagKey = HtmlTextWriterTag.Th Then If (SupportsBold) Then Return "<b>" Else Return "<font color=""FF0000"">" End If End If ' Check whether the element being rendered ' is an <H4> element. If it is, check the ' value of the SupportsItalic property. ' If true, render the opening tag of the <i> element ' prior to the <H4> element's content; otherwise, ' render the opening tag of a <font> element ' with a color attribute set to the hexadecimal ' value for navy blue. If TagKey = HtmlTextWriterTag.H4 Then If (SupportsItalic) Then Return "<i>" Else Return "<font color=""000080"">" End If End If ' Call the base method. Return MyBase.RenderBeforeContent() End Function ' Override the RenderAfterContent method to close ' styles opened during the call to the RenderBeforeContent ' method. Protected Overrides Function RenderAfterContent() As String ' Check whether the element being rendered is a <th> element. ' If so, and the requesting device supports bold formatting , ' render the closing tag of the <b> element. If not , ' render the closing tag of the <font> element. If TagKey = HtmlTextWriterTag.Th Then If SupportsBold Then Return "</b>" Else Return "</font>" End If End If ' Check whether the element being rendered is an <H4>. ' element. If so, and the requesting device supports italic ' formatting, render the closing tag of the <i> element. ' If not, render the closing tag of the <font> element. If TagKey = HtmlTextWriterTag.H4 Then If (SupportsItalic) Then Return "</i>" Else Return "</font>" End If End If ' Call the base method. Return MyBase.RenderAfterContent() End Function ' Override the RenderBeforeTag method to render the ' opening tag of a <small> element to modify the text size of ' any <a> elements that this writer encounters. Protected Overrides Function RenderBeforeTag() As String ' Check whether the element being rendered is an ' <a> element. If so, render the opening tag ' of the <small> element; otherwise, call the base method. If TagKey = HtmlTextWriterTag.A Then Return "<small>" End If Return MyBase.RenderBeforeTag() End Function ' Override the RenderAfterTag method to render ' close any elements opened in the RenderBeforeTag ' method call. Protected Overrides Function RenderAfterTag() As String ' Check whether the element being rendered is an ' <a> element. If so, render the closing tag of the ' <small> element; otherwise, call the base method. If TagKey = HtmlTextWriterTag.A Then Return "</small>" End If Return MyBase.RenderAfterTag() End Function End Class End Namespace
using System.IO; using System.Web.UI; namespace Examples.AspNet { public class CustomHtml32TextWriter : Html32TextWriter { // Create a constructor for the class // that takes a TextWriter as a parameter. public CustomHtml32TextWriter(TextWriter writer) : this(writer, DefaultTabString) { } // Create a constructor for the class that takes // a TextWriter and a string as parameters. public CustomHtml32TextWriter(TextWriter writer, String tabString) : base(writer, tabString) { } // Override the RenderBeforeContent method to render // styles before rendering the content of a <th> element. protected override string RenderBeforeContent() { // Check the TagKey property. If its value is // HtmlTextWriterTag.TH, check the value of the // SupportsBold property. If true, return the // opening tag of a <b> element; otherwise, render // the opening tag of a <font> element with a color // attribute set to the hexadecimal value for red. if (TagKey == HtmlTextWriterTag.Th) { if (SupportsBold) return "<b>"; else return "<font color=\"FF0000\">"; } // Check whether the element being rendered // is an <H4> element. If it is, check the // value of the SupportsItalic property. // If true, render the opening tag of the <i> element // prior to the <H4> element's content; otherwise, // render the opening tag of a <font> element // with a color attribute set to the hexadecimal // value for navy blue. if (TagKey == HtmlTextWriterTag.H4) { if (SupportsItalic) return "<i>"; else return "<font color=\"000080\">"; } // Call the base method. return base.RenderBeforeContent(); } // Override the RenderAfterContent method to close // styles opened during the call to the RenderBeforeContent // method. protected override string RenderAfterContent() { // Check whether the element being rendered is a <th> element. // If so, and the requesting device supports bold formatting , // render the closing tag of the <b> element. If not , // render the closing tag of the <font> element. if (TagKey == HtmlTextWriterTag.Th) { if (SupportsBold) return "</b>"; else return "</font>"; } // Check whether the element being rendered is an <H4>. // element. If so, and the requesting device supports italic // formatting, render the closing tag of the <i> element. // If not, render the closing tag of the <font> element. if (TagKey == HtmlTextWriterTag.H4) { if (SupportsItalic) return "</i>"; else return "</font>"; } // Call the base method return base.RenderAfterContent(); } // Override the RenderBeforeTag method to render the // opening tag of a <small> element to modify the text size of // any <a> elements that this writer encounters. protected override string RenderBeforeTag() { // Check whether the element being rendered is an // <a> element. If so, render the opening tag // of the <small> element; otherwise, call the base method. if (TagKey == HtmlTextWriterTag.A) return "<small>"; return base.RenderBeforeTag(); } // Override the RenderAfterTag method to render // close any elements opened in the RenderBeforeTag // method call. protected override string RenderAfterTag() { // Check whether the element being rendered is an // <a> element. If so, render the closing tag of the // <small> element; otherwise, call the base method. if (TagKey == HtmlTextWriterTag.A) return "</small>"; return base.RenderAfterTag(); } } }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Html32TextWriter コンストラクタ

名前 | 説明 |
---|---|
Html32TextWriter (TextWriter) | 要求元のブラウザが行インデントを要求したときに HtmlTextWriter.DefaultTabString フィールドに指定されている行インデントを使用する、Html32TextWriter クラスの新しいインスタンスを初期化します。 |
Html32TextWriter (TextWriter, String) | 指定された行インデントを使用する Html32TextWriter クラスの新しいインスタンスを初期化します。 |

Html32TextWriter フィールド
Html32TextWriter プロパティ

名前 | 説明 | |
---|---|---|
![]() | Encoding | HtmlTextWriter オブジェクトがページに内容を書き込むために使用するエンコーディングを取得します。 ( HtmlTextWriter から継承されます。) |
![]() | FormatProvider | 書式を制御するオブジェクトを取得します。 ( TextWriter から継承されます。) |
![]() | Indent | マークアップの各行の開始位置のインデントを設定するタブ位置の数を取得または設定します。 ( HtmlTextWriter から継承されます。) |
![]() | InnerWriter | マークアップ要素の内部の内容を書き込むテキスト ライタを取得または設定します。 ( HtmlTextWriter から継承されます。) |
![]() | NewLine | HtmlTextWriter オブジェクトで使用される行終端文字列を取得または設定します。 ( HtmlTextWriter から継承されます。) |
![]() | ShouldPerformDivTableSubstitution | HTML の 1 ブロックのレンダリング時間を短縮するために Table 要素を Div 要素に置き換えるかどうかを示すブール値を取得または設定します。 |
![]() | SupportsBold | 要求元のデバイスが太字の HTML テキストをサポートしているかどうかを示すブール値を取得または設定します。SupportsBold プロパティを使用して、太字のテキストを条件付きで Html32TextWriter 出力ストリームに出力します。 |
![]() | SupportsItalic | 要求元のデバイスが斜体の HTML テキストをサポートしているかどうかを示すブール値を取得または設定します。SupportsItalic プロパティを使用して、斜体のテキストを条件付きで Html32TextWriter 出力ストリームに出力します。 |

名前 | 説明 | |
---|---|---|
![]() | FontStack | レンダリングする HTML のフォント情報のコレクションを取得します。 |
![]() | TagKey | 指定したマークアップ要素の HtmlTextWriterTag 値を取得または設定します。 ( HtmlTextWriter から継承されます。) |
![]() | TagName | 出力されるマークアップ要素のタグ名を取得または設定します。 ( HtmlTextWriter から継承されます。) |

Html32TextWriter メソッド


名前 | 説明 | |
---|---|---|
![]() | AddAttribute | オーバーロードされます。 HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、指定されたマークアップ属性および値を追加します。 ( HtmlTextWriter から継承されます。) |
![]() | AddStyleAttribute | オーバーロードされます。 HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、マークアップ スタイル属性を追加します。 ( HtmlTextWriter から継承されます。) |
![]() | Dispose | オーバーロードされます。 この TextWriter オブジェクトによって使用されているすべてのリソースを解放します。 ( TextWriter から継承されます。) |
![]() | EncodeAttributeValue | オーバーロードされます。 現在のコンテキストの HttpRequest オブジェクトの要件に基づき、指定したマークアップ属性の値をエンコードします。 ( HtmlTextWriter から継承されます。) |
![]() | EncodeUrl | 指定した URL 内の空白文字列を "%20" に変換して、最小限の URL エンコーディングを実行します。 ( HtmlTextWriter から継承されます。) |
![]() | FilterAttributes | ページまたは Web サーバー コントロールのすべてのプロパティで、すべてのマークアップとスタイル属性を削除します。 ( HtmlTextWriter から継承されます。) |
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | GetAttributeKey | 指定した属性に対応する HtmlTextWriterAttribute 列挙値を取得します。 ( HtmlTextWriter から継承されます。) |
![]() | GetAttributeName | 指定した HtmlTextWriterAttribute 値に関連付けられたマークアップ属性の名前を取得します。 ( HtmlTextWriter から継承されます。) |
![]() | GetStyleKey | 指定したスタイルの HtmlTextWriterStyle 列挙値を取得します。 ( HtmlTextWriter から継承されます。) |
![]() | GetStyleName | 指定した HtmlTextWriterStyle 列挙値に関連付けられたマークアップ スタイル属性名を取得します。 ( HtmlTextWriter から継承されます。) |
![]() | GetTagKey | 指定したマークアップ要素に関連付けられた HtmlTextWriterTag 列挙値を取得します。 ( HtmlTextWriter から継承されます。) |
![]() | GetTagName | オーバーライドされます。 指定した HtmlTextWriterTag 列挙値に関連付けられた HTML 要素を返します。 |
![]() | IsAttributeDefined | オーバーロードされます。 RenderBeginTag メソッドの次回の呼び出し中に、指定したマークアップ属性とその値を出力するかどうかを決定します。 ( HtmlTextWriter から継承されます。) |
![]() | IsStyleAttributeDefined | オーバーロードされます。 RenderBeginTag メソッドの次回の呼び出し中に、マークアップ スタイル属性を出力するかどうかを決定します。 ( HtmlTextWriter から継承されます。) |
![]() | MemberwiseClone | オーバーロードされます。 ( MarshalByRefObject から継承されます。) |
![]() | OnAttributeRender | 指定したマークアップ属性とその値を現在のマークアップ要素に出力するかどうかを決定します。 ( HtmlTextWriter から継承されます。) |
![]() | OnStyleAttributeRender | オーバーライドされます。 指定した HTML スタイル属性とその値を出力ストリームに書き込むかどうかを判断します。 |
![]() | OnTagRender | オーバーライドされます。 指定した HTML 要素を出力ストリームに書き込むかどうかを判断します。 |
![]() | OutputTabs | マークアップ文字の行のインデント レベルを表す一連のタブ文字列を書き込みます。 ( HtmlTextWriter から継承されます。) |
![]() | PopEndTag | 出力する要素のリストから、最近保存したマークアップ要素を削除します。 ( HtmlTextWriter から継承されます。) |
![]() | PushEndTag | マークアップ要素の終了タグを生成するときに、後で使用できるように、指定されたマークアップ要素を保存します。 ( HtmlTextWriter から継承されます。) |
![]() | RegisterAttribute | リテラルの、または動的に生成されたマークアップ属性をソース ファイルから登録して、これらの属性を要求側のクライアントに適切に出力できるようにします。 ( HtmlTextWriter から継承されます。) |
![]() | RegisterStyle | リテラルの、または動的に生成されたマークアップ スタイル プロパティをソース ファイルから登録して、これらのプロパティを要求側のクライアントに適切に出力できるようにします。 ( HtmlTextWriter から継承されます。) |
![]() | RegisterTag | リテラルの、または動的に生成されたマークアップ タグをソース ファイルから登録して、それらのタグを要求側のクライアントに適切に出力できるようにします。 ( HtmlTextWriter から継承されます。) |
![]() | RenderAfterContent | オーバーライドされます。 HTML 要素の内容の後にテキストまたは空白文字を書き込みます。 |
![]() | RenderAfterTag | オーバーライドされます。 HTML 要素の終了タグの後に出現する空白文字またはテキストを書き込みます。 |
![]() | RenderBeforeContent | オーバーライドされます。 HTML 要素に格納されている内容の前に表示するタブ空白文字またはフォント情報を書き込みます。 |
![]() | RenderBeforeTag | オーバーライドされます。 HTML 要素の開始タグの前に出現するテキストまたはタブ空白文字を HTML 3.2 出力ストリームに書き込みます。 |
![]() | WriteUrlEncodedString | 指定された文字列を書き込んで、URL の必要条件に従ってエンコードします。 ( HtmlTextWriter から継承されます。) |

Html32TextWriter メンバ
一連の HTML 3.2 固有の文字とテキストを ASP.NET サーバー コントロールの出力ストリームに書き込みます。Html32TextWriter クラスには、ASP.NET サーバー コントロールが HTML 3.2 の内容をクライアントに表示するときに使用する書式設定機能が用意されています。
Html32TextWriter データ型で公開されるメンバを以下の表に示します。


名前 | 説明 | |
---|---|---|
![]() | CoreNewLine | TextWriter で使用する改行文字を格納します。(TextWriter から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Encoding | HtmlTextWriter オブジェクトがページに内容を書き込むために使用するエンコーディングを取得します。(HtmlTextWriter から継承されます。) |
![]() | FormatProvider | 書式を制御するオブジェクトを取得します。(TextWriter から継承されます。) |
![]() | Indent | マークアップの各行の開始位置のインデントを設定するタブ位置の数を取得または設定します。(HtmlTextWriter から継承されます。) |
![]() | InnerWriter | マークアップ要素の内部の内容を書き込むテキスト ライタを取得または設定します。(HtmlTextWriter から継承されます。) |
![]() | NewLine | HtmlTextWriter オブジェクトで使用される行終端文字列を取得または設定します。(HtmlTextWriter から継承されます。) |
![]() | ShouldPerformDivTableSubstitution | HTML の 1 ブロックのレンダリング時間を短縮するために Table 要素を Div 要素に置き換えるかどうかを示すブール値を取得または設定します。 |
![]() | SupportsBold | 要求元のデバイスが太字の HTML テキストをサポートしているかどうかを示すブール値を取得または設定します。SupportsBold プロパティを使用して、太字のテキストを条件付きで Html32TextWriter 出力ストリームに出力します。 |
![]() | SupportsItalic | 要求元のデバイスが斜体の HTML テキストをサポートしているかどうかを示すブール値を取得または設定します。SupportsItalic プロパティを使用して、斜体のテキストを条件付きで Html32TextWriter 出力ストリームに出力します。 |

名前 | 説明 | |
---|---|---|
![]() | FontStack | レンダリングする HTML のフォント情報のコレクションを取得します。 |
![]() | TagKey | 指定したマークアップ要素の HtmlTextWriterTag 値を取得または設定します。(HtmlTextWriter から継承されます。) |
![]() | TagName | 出力されるマークアップ要素のタグ名を取得または設定します。(HtmlTextWriter から継承されます。) |


名前 | 説明 | |
---|---|---|
![]() | AddAttribute | オーバーロードされます。 HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、指定されたマークアップ属性および値を追加します。 (HtmlTextWriter から継承されます。) |
![]() | AddStyleAttribute | オーバーロードされます。 HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、マークアップ スタイル属性を追加します。 (HtmlTextWriter から継承されます。) |
![]() | Dispose | オーバーロードされます。 この TextWriter オブジェクトによって使用されているすべてのリソースを解放します。 (TextWriter から継承されます。) |
![]() | EncodeAttributeValue | オーバーロードされます。 現在のコンテキストの HttpRequest オブジェクトの要件に基づき、指定したマークアップ属性の値をエンコードします。 (HtmlTextWriter から継承されます。) |
![]() | EncodeUrl | 指定した URL 内の空白文字列を "%20" に変換して、最小限の URL エンコーディングを実行します。 (HtmlTextWriter から継承されます。) |
![]() | FilterAttributes | ページまたは Web サーバー コントロールのすべてのプロパティで、すべてのマークアップとスタイル属性を削除します。 (HtmlTextWriter から継承されます。) |
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | GetAttributeKey | 指定した属性に対応する HtmlTextWriterAttribute 列挙値を取得します。 (HtmlTextWriter から継承されます。) |
![]() | GetAttributeName | 指定した HtmlTextWriterAttribute 値に関連付けられたマークアップ属性の名前を取得します。 (HtmlTextWriter から継承されます。) |
![]() | GetStyleKey | 指定したスタイルの HtmlTextWriterStyle 列挙値を取得します。 (HtmlTextWriter から継承されます。) |
![]() | GetStyleName | 指定した HtmlTextWriterStyle 列挙値に関連付けられたマークアップ スタイル属性名を取得します。 (HtmlTextWriter から継承されます。) |
![]() | GetTagKey | 指定したマークアップ要素に関連付けられた HtmlTextWriterTag 列挙値を取得します。 (HtmlTextWriter から継承されます。) |
![]() | GetTagName | オーバーライドされます。 指定した HtmlTextWriterTag 列挙値に関連付けられた HTML 要素を返します。 |
![]() | IsAttributeDefined | オーバーロードされます。 RenderBeginTag メソッドの次回の呼び出し中に、指定したマークアップ属性とその値を出力するかどうかを決定します。 (HtmlTextWriter から継承されます。) |
![]() | IsStyleAttributeDefined | オーバーロードされます。 RenderBeginTag メソッドの次回の呼び出し中に、マークアップ スタイル属性を出力するかどうかを決定します。 (HtmlTextWriter から継承されます。) |
![]() | MemberwiseClone | オーバーロードされます。 ( MarshalByRefObject から継承されます。) |
![]() | OnAttributeRender | 指定したマークアップ属性とその値を現在のマークアップ要素に出力するかどうかを決定します。 (HtmlTextWriter から継承されます。) |
![]() | OnStyleAttributeRender | オーバーライドされます。 指定した HTML スタイル属性とその値を出力ストリームに書き込むかどうかを判断します。 |
![]() | OnTagRender | オーバーライドされます。 指定した HTML 要素を出力ストリームに書き込むかどうかを判断します。 |
![]() | OutputTabs | マークアップ文字の行のインデント レベルを表す一連のタブ文字列を書き込みます。 (HtmlTextWriter から継承されます。) |
![]() | PopEndTag | 出力する要素のリストから、最近保存したマークアップ要素を削除します。 (HtmlTextWriter から継承されます。) |
![]() | PushEndTag | マークアップ要素の終了タグを生成するときに、後で使用できるように、指定されたマークアップ要素を保存します。 (HtmlTextWriter から継承されます。) |
![]() | RegisterAttribute | リテラルの、または動的に生成されたマークアップ属性をソース ファイルから登録して、これらの属性を要求側のクライアントに適切に出力できるようにします。 (HtmlTextWriter から継承されます。) |
![]() | RegisterStyle | リテラルの、または動的に生成されたマークアップ スタイル プロパティをソース ファイルから登録して、これらのプロパティを要求側のクライアントに適切に出力できるようにします。 (HtmlTextWriter から継承されます。) |
![]() | RegisterTag | リテラルの、または動的に生成されたマークアップ タグをソース ファイルから登録して、それらのタグを要求側のクライアントに適切に出力できるようにします。 (HtmlTextWriter から継承されます。) |
![]() | RenderAfterContent | オーバーライドされます。 HTML 要素の内容の後にテキストまたは空白文字を書き込みます。 |
![]() | RenderAfterTag | オーバーライドされます。 HTML 要素の終了タグの後に出現する空白文字またはテキストを書き込みます。 |
![]() | RenderBeforeContent | オーバーライドされます。 HTML 要素に格納されている内容の前に表示するタブ空白文字またはフォント情報を書き込みます。 |
![]() | RenderBeforeTag | オーバーライドされます。 HTML 要素の開始タグの前に出現するテキストまたはタブ空白文字を HTML 3.2 出力ストリームに書き込みます。 |
![]() | WriteUrlEncodedString | 指定された文字列を書き込んで、URL の必要条件に従ってエンコードします。 (HtmlTextWriter から継承されます。) |

- Html32TextWriterのページへのリンク