Html32TextWriter クラス

定義

一連の HTML 3.2 固有の文字とテキストを、ASP.NET サーバー コントロールの出力ストリームに書き込みます。 Html32TextWriter クラスは、HTML 3.2 コンテンツをクライアントにレンダリングするときにサーバー コントロール ASP.NET 使用する書式設定機能を提供します。

public ref class Html32TextWriter : System::Web::UI::HtmlTextWriter
public class Html32TextWriter : System.Web.UI.HtmlTextWriter
type Html32TextWriter = class
    inherit HtmlTextWriter
Public Class Html32TextWriter
Inherits HtmlTextWriter
継承
派生

次のコード例では、Html32TextWriter クラスから派生した CustomHtml32TextWriterという名前のクラスを使用する方法を示します。 CustomHtml32TextWriter は、HtmlTextWriter クラスによって確立されたパターンに従う 2 つのコンストラクターを作成し、RenderBeforeContentRenderAfterContentRenderBeforeTag、および RenderAfterTag メソッドをオーバーライドします。

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();
        }
    }
}
' Create a custom HtmlTextWriter class that overrides 
' the RenderBeforeContent and RenderAfterContent methods.
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

注釈

Html32TextWriter クラスは、HtmlTextWriter クラスの代わりに使用できます。 HTML 4.0 スタイル属性を同等の HTML 3.2 タグと属性に変換します。 HTML テーブルを使用して、色やフォントなどの属性の伝達を標準化します。 ASP.NET は、HttpBrowserCapabilities クラスの TagWriter プロパティを確認することで、HTML 3.2 以前のブラウザーでこのクラスを自動的に使用します。 HTML 3.2 マークアップを使用するデバイスを対象とするカスタム ページまたはコントロール アダプターを作成しない限り、Html32TextWriter クラスのインスタンスを明示的に作成する必要はありません。

ページおよびコントロールのレンダリングのカスタマイズの詳細については、「チュートリアル: カスタム Web サーバー コントロールの開発と使用」を参照してください。

コンストラクター

Html32TextWriter(TextWriter)

要求するブラウザーで行インデントが必要な場合に、DefaultTabString フィールドで指定された行インデントを使用する、Html32TextWriter クラスの新しいインスタンスを初期化します。

Html32TextWriter(TextWriter, String)

指定した行インデントを使用する Html32TextWriter クラスの新しいインスタンスを初期化します。

フィールド

CoreNewLine

この TextWriterに使用される改行文字を格納します。

(継承元 TextWriter)
DefaultTabString

1 つのタブ文字を表します。

(継承元 HtmlTextWriter)
DoubleQuoteChar

引用符 (") 文字を表します。

(継承元 HtmlTextWriter)
EndTagLeftChars

マークアップ要素の終了タグの左山かっことスラッシュ (</) を表します。

(継承元 HtmlTextWriter)
EqualsChar

等号 (=) を表します。

(継承元 HtmlTextWriter)
EqualsDoubleQuoteString

等号 (=) と二重引用符 (") を文字列 (=") で一緒に表します。

(継承元 HtmlTextWriter)
SelfClosingChars

マークアップ タグのスペースと自己終了スラッシュ (/) を表します。

(継承元 HtmlTextWriter)
SelfClosingTagEnd

自己終了マークアップ要素の終了スラッシュと右山かっこ (/>) を表します。

(継承元 HtmlTextWriter)
SemicolonChar

セミコロン (;)を表します。

(継承元 HtmlTextWriter)
SingleQuoteChar

アポストロフィ (') を表します。

(継承元 HtmlTextWriter)
SlashChar

スラッシュ (/) を表します。

(継承元 HtmlTextWriter)
SpaceChar

スペース ( ) 文字を表します。

(継承元 HtmlTextWriter)
StyleEqualsChar

値と等しいスタイル属性を設定するために使用されるスタイルと等しい (:) 文字を表します。

(継承元 HtmlTextWriter)
TagLeftChar

マークアップ タグの開始山かっこ (<) を表します。

(継承元 HtmlTextWriter)
TagRightChar

マークアップ タグの終了山かっこ (>) を表します。

(継承元 HtmlTextWriter)

プロパティ

Encoding

HtmlTextWriter オブジェクトがページにコンテンツを書き込むのに使用するエンコードを取得します。

(継承元 HtmlTextWriter)
FontStack

レンダリングする HTML のフォント情報のコレクションを取得します。

FormatProvider

書式設定を制御するオブジェクトを取得します。

(継承元 TextWriter)
Indent

マークアップの各行の先頭をインデントするタブ位置の数を取得または設定します。

(継承元 HtmlTextWriter)
InnerWriter

マークアップ要素の内部コンテンツを書き込むテキスト ライターを取得または設定します。

(継承元 HtmlTextWriter)
NewLine

HtmlTextWriter オブジェクトで使用される行ターミネータ文字列を取得または設定します。

(継承元 HtmlTextWriter)
ShouldPerformDivTableSubstitution

HTML ブロックのレンダリングにかかる時間を短縮するために、Table 要素を Div 要素に置き換えるかどうかを示すブール値を取得または設定します。

SupportsBold

要求するデバイスが太字の HTML テキストをサポートしているかどうかを示すブール値を取得または設定します。 Html32TextWriter 出力ストリームに太字のテキストを条件付きでレンダリングするには、SupportsBold プロパティを使用します。

SupportsItalic

要求するデバイスが斜体の HTML テキストをサポートしているかどうかを示すブール値を取得または設定します。 SupportsItalic プロパティを使用して、条件付きで斜体のテキストを Html32TextWriter 出力ストリームにレンダリングします。

TagKey

指定したマークアップ要素の HtmlTextWriterTag 値を取得または設定します。

(継承元 HtmlTextWriter)
TagName

レンダリングされるマークアップ要素のタグ名を取得または設定します。

(継承元 HtmlTextWriter)

メソッド

AddAttribute(HtmlTextWriterAttribute, String)

RenderBeginTag メソッドの後続の呼び出しで、HtmlTextWriter オブジェクトが作成する要素の開始タグにマークアップ属性と属性値を追加します。

(継承元 HtmlTextWriter)
AddAttribute(HtmlTextWriterAttribute, String, Boolean)

マークアップ属性と属性値を、HtmlTextWriter オブジェクトが後で RenderBeginTag メソッドを呼び出して作成する要素の開始タグに追加します (省略可能なエンコード)。

(継承元 HtmlTextWriter)
AddAttribute(String, String)

RenderBeginTag メソッドの後続の呼び出しで、HtmlTextWriter オブジェクトが作成する要素の開始タグに、指定したマークアップ属性と値を追加します。

(継承元 HtmlTextWriter)
AddAttribute(String, String, Boolean)

HtmlTextWriter オブジェクトが後で RenderBeginTag メソッドを呼び出して作成する要素の開始タグに、指定したマークアップ属性と値を追加します (省略可能なエンコード)。

(継承元 HtmlTextWriter)
AddAttribute(String, String, HtmlTextWriterAttribute)

指定したマークアップ属性と値を、HtmlTextWriterAttribute 列挙値と共に、HtmlTextWriter オブジェクトが作成する要素の開始タグに追加し、後続の RenderBeginTag メソッドの呼び出しを行います。

(継承元 HtmlTextWriter)
AddStyleAttribute(HtmlTextWriterStyle, String)

指定した HtmlTextWriterStyle 値に関連付けられたマークアップ スタイル属性と属性値を、後続の RenderBeginTag メソッドの呼び出しによって作成された開始マークアップ タグに追加します。

(継承元 HtmlTextWriter)
AddStyleAttribute(String, String)

指定したマークアップ スタイル属性と属性値を、後続の RenderBeginTag メソッドの呼び出しによって作成された開始マークアップ タグに追加します。

(継承元 HtmlTextWriter)
AddStyleAttribute(String, String, HtmlTextWriterStyle)

指定したマークアップ スタイル属性と属性値を、HtmlTextWriterStyle 列挙値と共に、RenderBeginTag メソッドの後続の呼び出しによって作成された開始マークアップ タグに追加します。

(継承元 HtmlTextWriter)
BeginRender()

HtmlTextWriter オブジェクトまたは派生クラスのオブジェクトに、コントロールがレンダリングされようとしていることを通知します。

(継承元 HtmlTextWriter)
Close()

HtmlTextWriter オブジェクトを閉じ、それに関連付けられているシステム リソースを解放します。

(継承元 HtmlTextWriter)
CreateObjRef(Type)

リモート オブジェクトとの通信に使用されるプロキシの生成に必要なすべての関連情報を含むオブジェクトを作成します。

(継承元 MarshalByRefObject)
Dispose()

TextWriter オブジェクトによって使用されるすべてのリソースを解放します。

(継承元 TextWriter)
Dispose(Boolean)

TextWriter によって使用されるアンマネージ リソースを解放し、必要に応じてマネージド リソースを解放します。

(継承元 TextWriter)
DisposeAsync()

TextWriter オブジェクトによって使用されるすべてのリソースを非同期的に解放します。

(継承元 TextWriter)
EncodeAttributeValue(HtmlTextWriterAttribute, String)

現在のコンテキストの HttpRequest オブジェクトの要件に基づいて、指定したマークアップ属性の値をエンコードします。

(継承元 HtmlTextWriter)
EncodeAttributeValue(String, Boolean)

現在のコンテキストの HttpRequest オブジェクトの要件に基づいて、指定したマークアップ属性の値をエンコードします。

(継承元 HtmlTextWriter)
EncodeUrl(String)

指定した URL 内のスペースを文字列 "%20" に変換することで、最小限の URL エンコードを実行します。

(継承元 HtmlTextWriter)
EndRender()

コントロールのレンダリングが完了したことを、HtmlTextWriter オブジェクトまたは派生クラスのオブジェクトに通知します。 このメソッドを使用すると、BeginRender() メソッドで開かれたマークアップ要素を閉じます。

(継承元 HtmlTextWriter)
EnterStyle(Style)

指定したスタイルのレイアウトと文字書式を実装する属性を含む <span> 要素の開始タグを書き込みます。

(継承元 HtmlTextWriter)
EnterStyle(Style, HtmlTextWriterTag)

指定したスタイルのレイアウトと文字書式を実装する属性を含むマークアップ要素の開始タグを書き込みます。

(継承元 HtmlTextWriter)
Equals(Object)

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
ExitStyle(Style)

指定したレイアウトと文字の書式設定を終了するために、<span> 要素の終了タグを書き込みます。

(継承元 HtmlTextWriter)
ExitStyle(Style, HtmlTextWriterTag)

指定したレイアウトと文字の書式設定を終了するために、指定したマークアップ要素の終了タグを書き込みます。

(継承元 HtmlTextWriter)
FilterAttributes()

ページまたは Web サーバー コントロールのすべてのプロパティのすべてのマークアップ属性とスタイル属性を削除します。

(継承元 HtmlTextWriter)
Flush()

現在の HtmlTextWriter オブジェクトのすべてのバッファーをクリアし、バッファー内のデータを出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
FlushAsync()

現在のライターのすべてのバッファーを非同期的にクリアし、バッファー内のデータを基になるデバイスに書き込みます。

(継承元 TextWriter)
FlushAsync(CancellationToken)

現在のライターのすべてのバッファーを非同期的にクリアし、バッファー内のデータを基になるデバイスに書き込みます。

(継承元 TextWriter)
GetAttributeKey(String)

指定した属性の対応する HtmlTextWriterAttribute 列挙値を取得します。

(継承元 HtmlTextWriter)
GetAttributeName(HtmlTextWriterAttribute)

指定した HtmlTextWriterAttribute 値に関連付けられているマークアップ属性の名前を取得します。

(継承元 HtmlTextWriter)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetLifetimeService()
古い.

このインスタンスの有効期間ポリシーを制御する現在の有効期間サービス オブジェクトを取得します。

(継承元 MarshalByRefObject)
GetStyleKey(String)

指定したスタイルの HtmlTextWriterStyle 列挙値を取得します。

(継承元 HtmlTextWriter)
GetStyleName(HtmlTextWriterStyle)

指定した HtmlTextWriterStyle 列挙値に関連付けられているマークアップ スタイル属性名を取得します。

(継承元 HtmlTextWriter)
GetTagKey(String)

指定したマークアップ要素に関連付けられている HtmlTextWriterTag 列挙値を取得します。

(継承元 HtmlTextWriter)
GetTagName(HtmlTextWriterTag)

指定した HtmlTextWriterTag 列挙値に関連付けられている HTML 要素を返します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
InitializeLifetimeService()
古い.

このインスタンスの有効期間ポリシーを制御する有効期間サービス オブジェクトを取得します。

(継承元 MarshalByRefObject)
IsAttributeDefined(HtmlTextWriterAttribute)

RenderBeginTag メソッドの次の呼び出し中に、指定したマークアップ属性とその値をレンダリングするかどうかを決定します。

(継承元 HtmlTextWriter)
IsAttributeDefined(HtmlTextWriterAttribute, String)

RenderBeginTag メソッドの次の呼び出し中に、指定したマークアップ属性とその値をレンダリングするかどうかを決定します。

(継承元 HtmlTextWriter)
IsStyleAttributeDefined(HtmlTextWriterStyle)

RenderBeginTag メソッドの次の呼び出し中に、指定したマークアップ スタイル属性をレンダリングするかどうかを決定します。

(継承元 HtmlTextWriter)
IsStyleAttributeDefined(HtmlTextWriterStyle, String)

RenderBeginTag メソッドの次の呼び出し中に、指定したマークアップ スタイル属性とその値をレンダリングするかどうかを決定します。

(継承元 HtmlTextWriter)
IsValidFormAttribute(String)

属性をチェックして、<form> マークアップ要素の開始タグでレンダリングできることを確認します。

(継承元 HtmlTextWriter)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
MemberwiseClone(Boolean)

現在の MarshalByRefObject オブジェクトの簡易コピーを作成します。

(継承元 MarshalByRefObject)
OnAttributeRender(String, String, HtmlTextWriterAttribute)

指定したマークアップ属性とその値を現在のマークアップ要素にレンダリングできるかどうかを判断します。

(継承元 HtmlTextWriter)
OnStyleAttributeRender(String, String, HtmlTextWriterStyle)

指定した HTML スタイル属性とその値を出力ストリームに書き込むかどうかを決定します。

OnTagRender(String, HtmlTextWriterTag)

指定した HTML 要素を出力ストリームに書き込むかどうかを決定します。

OutputTabs()

マークアップ文字の行のインデント レベルを表す一連のタブ文字列を書き込みます。

(継承元 HtmlTextWriter)
PopEndTag()

レンダリングされた要素の一覧から、最後に保存したマークアップ要素を削除します。

(継承元 HtmlTextWriter)
PushEndTag(String)

マークアップ要素の終了タグを生成するときに後で使用するために、指定したマークアップ要素を保存します。

(継承元 HtmlTextWriter)
RenderAfterContent()

HTML 要素のコンテンツの後に表示されるテキストまたは間隔を書き込みます。

RenderAfterTag()

HTML 要素の終了タグの後に発生する間隔またはテキストを書き込みます。

RenderBeforeContent()

HTML 要素に含まれるコンテンツの前に表示されるタブ間隔またはフォント情報を書き込みます。

RenderBeforeTag()

HTML 要素の開始タグの前に発生するテキストまたはタブの間隔を HTML 3.2 出力ストリームに書き込みます。

RenderBeginTag(HtmlTextWriterTag)

指定した要素の開始タグを HTML 3.2 出力ストリームに書き込みます。

RenderBeginTag(String)

指定したマークアップ要素の開始タグを出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
RenderEndTag()

HTML 要素の終了タグを、要素に関連付けられているフォント情報と共に、Html32TextWriter 出力ストリームに書き込みます。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
Write(Boolean)

ブール値のテキスト表現を、保留中のタブ間隔と共に出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(Char)

保留中のタブ間隔と共に、Unicode 文字のテキスト表現を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(Char[])

Unicode 文字の配列のテキスト表現を、保留中のタブ間隔と共に出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(Char[], Int32, Int32)

Unicode 文字のサブ配列のテキスト表現を、保留中のタブ間隔と共に出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(Decimal)

10 進値のテキスト表現をテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(Double)

倍精度浮動小数点数のテキスト表現を、保留中のタブ間隔と共に出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(Int32)

保留中のタブ間隔と共に、32 バイト符号付き整数のテキスト表現を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(Int64)

保留中のタブ間隔と共に、64 バイト符号付き整数のテキスト表現を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(Object)

保留中のタブ間隔と共に、オブジェクトのテキスト表現を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(ReadOnlySpan<Char>)

テキスト ストリームに文字スパンを書き込みます。

(継承元 TextWriter)
Write(Single)

単精度浮動小数点数のテキスト表現を、保留中のタブ間隔と共に出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(String)

保留中のタブ間隔と共に、指定した文字列を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(String, Object)

保留中のタブ間隔と共に、Format(String, Object) メソッドと同じセマンティクスを使用して、タブ文字列と書式設定された文字列を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
Write(String, Object, Object)

保留中のタブ間隔と共に、2 つのオブジェクトのテキスト表現を含む書式設定された文字列を出力ストリームに書き込みます。 このメソッドは、Format(String, Object, Object) メソッドと同じセマンティクスを使用します。

(継承元 HtmlTextWriter)
Write(String, Object, Object, Object)

Format(String, Object, Object, Object) メソッドと同じセマンティクスを使用して、書式設定された文字列をテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(String, Object[])

保留中のタブ間隔と共に、オブジェクト配列のテキスト表現を含む書式設定された文字列を出力ストリームに書き込みます。 このメソッドは、Format(String, Object[]) メソッドと同じセマンティクスを使用します。

(継承元 HtmlTextWriter)
Write(String, ReadOnlySpan<Object>)

Format(String, ReadOnlySpan<Object>)と同じセマンティクスを使用して、書式設定された文字列をテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(StringBuilder)

文字列ビルダーをテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(UInt32)

4 バイト符号なし整数のテキスト表現をテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(UInt64)

8 バイト符号なし整数のテキスト表現をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteAsync(Char)

文字をテキスト ストリームに非同期的に書き込みます。

(継承元 TextWriter)
WriteAsync(Char[])

文字配列をテキスト ストリームに非同期的に書き込みます。

(継承元 TextWriter)
WriteAsync(Char[], Int32, Int32)

文字のサブ配列をテキスト ストリームに非同期的に書き込みます。

(継承元 TextWriter)
WriteAsync(ReadOnlyMemory<Char>, CancellationToken)

文字メモリ領域をテキスト ストリームに非同期的に書き込みます。

(継承元 TextWriter)
WriteAsync(String)

文字列をテキスト ストリームに非同期的に書き込みます。

(継承元 TextWriter)
WriteAsync(StringBuilder, CancellationToken)

文字列ビルダーをテキスト ストリームに非同期的に書き込みます。

(継承元 TextWriter)
WriteAttribute(String, String)

指定したマークアップ属性と値を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteAttribute(String, String, Boolean)

指定したマークアップ属性と値を出力ストリームに書き込み、指定した場合はエンコードされた値を書き込みます。

(継承元 HtmlTextWriter)
WriteBeginTag(String)

指定したマークアップ要素のタブ間隔と開始タグを出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteBreak()

<br /> マークアップ要素を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteEncodedText(String)

要求するデバイスの指定されたテキストをエンコードし、出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteEncodedUrl(String)

指定した URL をエンコードし、出力ストリームに書き込みます。 URL にはパラメーターが含まれる場合があります。

(継承元 HtmlTextWriter)
WriteEncodedUrlParameter(String)

要求するデバイスの指定された URL パラメーターをエンコードし、出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteEndTag(String)

指定したマークアップ要素のタブ間隔と終了タグを書き込みます。

(継承元 HtmlTextWriter)
WriteFullBeginTag(String)

指定したマークアップ要素のタブ間隔と開始タグを出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteLine()

行ターミネータ文字列を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteLine(Boolean)

保留中のタブ間隔とブール値のテキスト表現を出力ストリームに書き込み、続けて行ターミネータ文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(Char)

保留中のタブ間隔と Unicode 文字の後に行ターミネータ文字列を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteLine(Char[])

保留中のタブ間隔と Unicode 文字の配列を出力ストリームに書き込み、続けて行ターミネータ文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(Char[], Int32, Int32)

保留中のタブ間隔と Unicode 文字のサブ配列の後に行ターミネータ文字列を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteLine(Decimal)

10 進値のテキスト表現をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLine(Double)

保留中のタブ間隔と倍精度浮動小数点数のテキスト表現を出力ストリームに書き込み、続けて行終端記号文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(Int32)

保留中のタブ間隔と、32 バイト符号付き整数のテキスト表現と行終端文字列を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteLine(Int64)

保留中のタブ間隔と、64 バイト符号付き整数のテキスト表現と行終端文字列を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteLine(Object)

保留中のタブ間隔と、オブジェクトのテキスト表現を出力ストリームに書き込み、続けて行ターミネータ文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(ReadOnlySpan<Char>)

文字範囲のテキスト表現をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLine(Single)

保留中のタブ間隔と、単精度浮動小数点数のテキスト表現を出力ストリームに書き込み、続けて行ターミネータ文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(String)

保留中のタブ間隔とテキスト文字列を出力ストリームに書き込み、続けて行ターミネータ文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(String, Object)

保留中のタブ間隔と、オブジェクトのテキスト表現を含む書式設定された文字列を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteLine(String, Object, Object)

保留中のタブ間隔と、2 つのオブジェクトのテキスト表現を含む書式設定された文字列を出力ストリームに書き込み、続けて行終端文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(String, Object, Object, Object)

Format(String, Object)と同じセマンティクスを使用して、書式設定された文字列と新しい行をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteLine(String, Object[])

保留中のタブ間隔と、オブジェクト配列のテキスト表現を含む書式設定された文字列を出力ストリームに書き込み、続けて行終端文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(String, ReadOnlySpan<Object>)

Format(String, ReadOnlySpan<Object>)と同じセマンティクスを使用して、書式設定された文字列と新しい行をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteLine(StringBuilder)

文字列ビルダーのテキスト表現をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLine(UInt32)

保留中のタブ間隔と 4 バイト符号なし整数のテキスト表現を出力ストリームに書き込み、続けて行終端文字列を書き込みます。

(継承元 HtmlTextWriter)
WriteLine(UInt64)

8 バイト符号なし整数のテキスト表現をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLineAsync()

テキスト ストリームに行ターミネータを非同期に書き込みます。

(継承元 TextWriter)
WriteLineAsync(Char)

テキスト ストリームに文字を非同期に書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLineAsync(Char[])

テキスト ストリームに文字の配列を非同期に書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLineAsync(Char[], Int32, Int32)

テキスト ストリームに文字のサブ配列を非同期に書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken)

文字メモリ領域のテキスト表現をテキスト ストリームに非同期的に書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLineAsync(String)

テキスト ストリームに文字列を非同期に書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLineAsync(StringBuilder, CancellationToken)

文字列ビルダーのテキスト表現をテキスト ストリームに非同期的に書き込み、続けて行終端記号を書き込みます。

(継承元 TextWriter)
WriteLineNoTabs(String)

文字列を出力ストリームに書き込み、続けて行ターミネータ文字列を書き込みます。 このメソッドは、指定したタブ間隔を無視します。

(継承元 HtmlTextWriter)
WriteStyleAttribute(String, String)

指定したスタイル属性を出力ストリームに書き込みます。

(継承元 HtmlTextWriter)
WriteStyleAttribute(String, String, Boolean)

指定したスタイルの属性と値を出力ストリームに書き込み、指定されている場合は値をエンコードします。

(継承元 HtmlTextWriter)
WriteUrlEncodedString(String, Boolean)

指定した文字列を URL 要件に従ってエンコードして書き込みます。

(継承元 HtmlTextWriter)

明示的なインターフェイスの実装

IDisposable.Dispose()

このメンバーの説明については、Dispose()を参照してください。

(継承元 TextWriter)

適用対象

こちらもご覧ください