Html32TextWriter クラス
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
一連の HTML 3.2 固有の文字とテキストを ASP.NET サーバー コントロールの出力ストリームに書き込みます。 Html32TextWriter クラスには、ASP.NET サーバー コントロールが HTML 3.2 の内容をクライアントに表示するときに使用する書式設定機能が用意されています。
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
- 継承
- 派生
例
次のコード例では、 クラスから派生する という名前 CustomHtml32TextWriter
のクラスを使用する方法を Html32TextWriter 示します。
CustomHtml32TextWriter
は、 クラスによって確立されたパターンに従う 2 つのコンストラクターをHtmlTextWriter作成し、、、RenderAfterContentRenderBeforeTag、および メソッドをRenderAfterTagオーバーライドRenderBeforeContentします。
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 クラスの プロパティをチェックして、HTML 3.2 以前のブラウザーでこのクラスを自動的にTagWriterHttpBrowserCapabilities使用します。 HTML 3.2 マークアップを使用するデバイスを対象とするカスタム ページまたはコントロール アダプターを作成しない限り、 クラスの Html32TextWriter インスタンスを明示的に作成する必要はありません。
ページとコントロールのレンダリングのカスタマイズの詳細については、「 チュートリアル: カスタム Web サーバー コントロールの開発と使用」を参照してください。
コンストラクター
Html32TextWriter(TextWriter) |
要求元のブラウザーが行インデントを要求したときに Html32TextWriter フィールドに指定されている行インデントを使用する、DefaultTabString クラスの新しいインスタンスを初期化します。 |
Html32TextWriter(TextWriter, String) |
指定された行インデントを使用する Html32TextWriter クラスの新しいインスタンスを初期化します。 |
フィールド
CoreNewLine |
この |
DefaultTabString |
単一のタブ文字を表します。 (継承元 HtmlTextWriter) |
DoubleQuoteChar |
引用符 (") を表します。 (継承元 HtmlTextWriter) |
EndTagLeftChars |
マークアップ要素の終了タグの左山かっことスラッシュ記号 (</) を表します。 (継承元 HtmlTextWriter) |
EqualsChar |
等号 ( |
EqualsDoubleQuoteString |
文字列 (=") の等号 (=) と二重引用符文字 (") の両方を表します。 (継承元 HtmlTextWriter) |
SelfClosingChars |
マークアップ タグの空白文字と自己終了スラッシュ記号 (/) を表します。 (継承元 HtmlTextWriter) |
SelfClosingTagEnd |
自己終了マークアップ要素の終了スラッシュ記号と右山かっこ (/>) を表します。 (継承元 HtmlTextWriter) |
SemicolonChar |
セミコロン (;) を表します。 (継承元 HtmlTextWriter) |
SingleQuoteChar |
アポストロフィ (') を表します。 (継承元 HtmlTextWriter) |
SlashChar |
スラッシュ記号 (/) を表します。 (継承元 HtmlTextWriter) |
SpaceChar |
空白文字 ( ) を表します。 (継承元 HtmlTextWriter) |
StyleEqualsChar |
スタイル属性を値に等しく設定するために使用するスタイル イコール ( |
TagLeftChar |
マークアップ タグの開始山かっこ (<) を表します。 (継承元 HtmlTextWriter) |
TagRightChar |
マークアップ タグの終了山かっこ (>) を表します。 (継承元 HtmlTextWriter) |
プロパティ
Encoding |
HtmlTextWriter オブジェクトがページにコンテンツを書き込むために使用するエンコーディングを取得します。 (継承元 HtmlTextWriter) |
FontStack |
レンダリングする HTML のフォント情報のコレクションを取得します。 |
FormatProvider |
書式を制御するオブジェクトを取得します。 (継承元 TextWriter) |
Indent |
マークアップの各行の開始位置のインデントを設定するタブ位置の数を取得または設定します。 (継承元 HtmlTextWriter) |
InnerWriter |
マークアップ要素の内部コンテンツを書き込むテキスト ライターを取得または設定します。 (継承元 HtmlTextWriter) |
NewLine |
HtmlTextWriter オブジェクトで使用される行終端文字列を取得または設定します。 (継承元 HtmlTextWriter) |
ShouldPerformDivTableSubstitution |
HTML の 1 ブロックのレンダリング時間を短縮するために |
SupportsBold |
要求元のデバイスが太字の HTML テキストをサポートしているかどうかを示すブール値を取得または設定します。 SupportsBold プロパティを使用して、太字のテキストを条件付きで Html32TextWriter 出力ストリームに出力します。 |
SupportsItalic |
要求元のデバイスが斜体の HTML テキストをサポートしているかどうかを示すブール値を取得または設定します。 SupportsItalic プロパティを使用して、斜体のテキストを条件付きで Html32TextWriter 出力ストリームに出力します。 |
TagKey |
指定したマークアップ要素の HtmlTextWriterTag 値を取得または設定します。 (継承元 HtmlTextWriter) |
TagName |
レンダリングされるマークアップ要素のタグ名を取得または設定します。 (継承元 HtmlTextWriter) |
メソッド
AddAttribute(HtmlTextWriterAttribute, String) |
HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、マークアップ属性および属性値を追加します。 (継承元 HtmlTextWriter) |
AddAttribute(HtmlTextWriterAttribute, String, Boolean) |
オプションのエンコーディングを使用して、HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、マークアップ属性および属性値を追加します。 (継承元 HtmlTextWriter) |
AddAttribute(String, String) |
HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、指定されたマークアップ属性および値を追加します。 (継承元 HtmlTextWriter) |
AddAttribute(String, String, Boolean) |
オプションのエンコーディングを使用して、HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、指定されたマークアップ属性および値を追加します。 (継承元 HtmlTextWriter) |
AddAttribute(String, String, HtmlTextWriterAttribute) |
HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、HtmlTextWriterAttribute 列挙値と共に、指定されたマークアップ属性および値を追加します。 (継承元 HtmlTextWriter) |
AddStyleAttribute(HtmlTextWriterStyle, String) |
後続の RenderBeginTag メソッドの呼び出しで作成される開始マークアップ タグに、指定された HtmlTextWriterStyle 値および属性値に関連付けられたマークアップ スタイル属性を追加します。 (継承元 HtmlTextWriter) |
AddStyleAttribute(String, String) |
後続の RenderBeginTag メソッドの呼び出しで作成される開始タグに、指定されたマークアップ スタイル属性および属性値を追加します。 (継承元 HtmlTextWriter) |
AddStyleAttribute(String, String, HtmlTextWriterStyle) |
後続の RenderBeginTag メソッドの呼び出しで作成される開始マークアップ タグに、HtmlTextWriterStyle 列挙値と共に、指定されたマークアップ スタイル属性および属性値を追加します。 (継承元 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) |
指定されたスタイルのレイアウトと文字書式を実装するための属性を含む |
EnterStyle(Style, HtmlTextWriterTag) |
指定されたスタイルのレイアウトと文字書式を実装するための属性を含むマークアップ要素の開始タグを書き込みます。 (継承元 HtmlTextWriter) |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。 (継承元 Object) |
ExitStyle(Style) |
指定したレイアウトと文字書式を終了する |
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) |
|
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>) |
一連の HTML 3.2 固有の文字とテキストを ASP.NET サーバー コントロールの出力ストリームに書き込みます。 Html32TextWriter クラスには、ASP.NET サーバー コントロールが HTML 3.2 の内容をクライアントに表示するときに使用する書式設定機能が用意されています。 (継承元 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() |
|
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>) |
一連の HTML 3.2 固有の文字とテキストを ASP.NET サーバー コントロールの出力ストリームに書き込みます。 Html32TextWriter クラスには、ASP.NET サーバー コントロールが HTML 3.2 の内容をクライアントに表示するときに使用する書式設定機能が用意されています。 (継承元 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) |
適用対象
こちらもご覧ください
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示