指定した HTML 要素を保存し、後で PopEndTag メソッドの呼び出しに使用します。
Protected Sub PushEndTag( _
ByVal endTag As String _)
[C#]
protected void PushEndTag(stringendTag);
[C++]
protected: void PushEndTag(String* endTag);
[JScript]
protected function PushEndTag(
endTag : String);
パラメータ
- endTag
HTML 要素の終了タグ。
使用例
' The endTag variable must be declared as a string
' in the class variable. Use the TagLeftChar,
' SlashChar, and TagRightChar fields and
' the GetTagName method to assign a value to
' the endTag variable.
endTag = TagLeftChar & SlashChar & GetTagName(HtmlTextWriterTag.Font) & TagRightChar
' Use the PushEndTag method to write the custom
' endTag string value as its parameter.
PushEndTag(endTag)
End If
[C#]
// The endTag variable must be declared as a string
// in the class variable. Use the TagLeftChar,
// SlashChar, and TagRightChar fields and the
// GetTagName method to assign a value to the
// endTag variable.
endTag = TagLeftChar + SlashChar + GetTagName(HtmlTextWriterTag.Font) + TagRightChar;
// Use the PushEndTag method to write the custom
// endTag string value as its parameter.
PushEndTag(endTag);
[C++]
// The endTag variable must be declared as a String* in the class
// variable for this assignment to work. Use the
// TagLeftChar, SlashChar, and TagRightChar fields and the
// GetTagName method to assign a value to the endTag variable.
endTag = String::Concat( __box(TagLeftChar), __box(SlashChar), GetTagName(HtmlTextWriterTag::Font), __box(TagRightChar));
// Use the PushEndTag method to write the custom
// endTag String* value as its parameter.
PushEndTag(endTag);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ
参照
HtmlTextWriter クラス | HtmlTextWriter メンバ | System.Web.UI 名前空間