Html32TextWriterとは? わかりやすく解説

Html32TextWriter クラス

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

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Class Html32TextWriter
    Inherits HtmlTextWriter
Dim instance As Html32TextWriter
public class Html32TextWriter : HtmlTextWriter
public ref class Html32TextWriter : public
 HtmlTextWriter
public class Html32TextWriter extends HtmlTextWriter
public class Html32TextWriter extends
 HtmlTextWriter
解説解説
使用例使用例

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();
        }
    }
}
.NET Framework のセキュリティ.NET Framework のセキュリティ
継承階層継承階層
System.Object
   System.MarshalByRefObject
     System.IO.TextWriter
       System.Web.UI.HtmlTextWriter
        System.Web.UI.Html32TextWriter
           System.Web.UI.ChtmlTextWriter
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Html32TextWriter コンストラクタ (TextWriter, String)

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

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public Sub New ( _
    writer As TextWriter, _
    tabString As String _
)
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
)
public function Html32TextWriter (
    writer : TextWriter, 
    tabString : String
)

パラメータ

writer

HMTL 3.2 コンテンツをレンダリングする TextWriter。

tabString

Indent で定義された空白文字の数を表す文字列。

使用例使用例

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();
        }
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Html32TextWriter クラス
Html32TextWriter メンバ
System.Web.UI 名前空間
TextWriter
Indent

Html32TextWriter コンストラクタ (TextWriter)

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

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

解説解説
使用例使用例

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();
        }
    }
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Html32TextWriter クラス
Html32TextWriter メンバ
System.Web.UI 名前空間

Html32TextWriter コンストラクタ

Html32TextWriter クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

Html32TextWriter クラス
Html32TextWriter メンバ
System.Web.UI 名前空間

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 クラス
System.Web.UI 名前空間
HtmlTextWriter

その他の技術情報

チュートリアル : カスタム サーバー コントロールの開発と使用

Html32TextWriter メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AddAttribute  オーバーロードされます。 HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、指定されたマークアップ属性および値を追加します。 ( HtmlTextWriter から継承されます。)
パブリック メソッド AddStyleAttribute  オーバーロードされます。 HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、マークアップ スタイル属性を追加します。 ( HtmlTextWriter から継承されます。)
パブリック メソッド BeginRender  HtmlTextWriter オブジェクトまたは派生クラスのオブジェクトに、コントロールが出力されようとしていることを通知します。 ( HtmlTextWriter から継承されます。)
パブリック メソッド Close  HtmlTextWriter オブジェクトを閉じ、関連付けられているシステム リソースを解放します。 ( HtmlTextWriter から継承されます。)
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド Dispose  オーバーロードされます。 この TextWriter オブジェクトによって使用されているすべてのリソースを解放します。 ( TextWriter から継承されます。)
パブリック メソッド EndRender  HtmlTextWriter オブジェクトまたは派生クラスのオブジェクトに、コントロールの出力が完了したことを通知します。このメソッドを使用して、BeginRender メソッドで開かれたすべてのマークアップ要素を閉じることができます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド EnterStyle  オーバーロードされます。 指定されたスタイルのレイアウトと文字書式を実装するための属性を含むマークアップ要素の開始タグを書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド ExitStyle  オーバーロードされます。 指定したレイアウトと文字書式を終了するマークアップ要素の終了タグを書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド Flush  現在の HtmlTextWriter オブジェクトのすべてのバッファをクリアし、バッファ内のすべてのデータを出力ストリームに書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 ( MarshalByRefObject から継承されます。)
パブリック メソッド IsValidFormAttribute  <form> マークアップ要素の開始タグに確実に属性が出力されるようにするために、属性を確認します。 ( HtmlTextWriter から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド RenderBeginTag オーバーロードされます。 オーバーライドされます。 HTML 要素の開始タグを Html32TextWriter 出力ストリームに書き込みます。
パブリック メソッド RenderEndTag オーバーライドされます。 HTML 要素の終了タグをその要素に関連付けられたフォント情報と共に Html32TextWriter 出力ストリームに書き込みます。
パブリック メソッド Synchronized  指定した TextWriter をラップするスレッド セーフ ラッパーを作成します。 ( TextWriter から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 ( Object から継承されます。)
パブリック メソッド Write  オーバーロードされます。 保留中のタブ空白文字と共に、指定したデータ型を出力ストリームに書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteAttribute  オーバーロードされます。 マークアップ属性とその値を出力ストリームに書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteBeginTag  タブ空白文字と指定したマークアップ要素の開始タグを出力ストリームに書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteBreak  <br /> マークアップ要素を出力ストリームに書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteEncodedText  指定したテキストを要求側のデバイスに合わせてエンコードし、それを出力ストリームに書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteEncodedUrl  指定した URL をエンコードしてから、出力ストリームに書き込みます。URL には、パラメータを含めることができます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteEncodedUrlParameter  指定した URL パラメータを要求側のデバイスに合わせてエンコードし、それを出力ストリームに書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteEndTag  タブ空白文字と指定したマークアップ要素の終了タグを書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteFullBeginTag  タブ空白文字と指定したマークアップ要素の開始タグを出力ストリームに書き込みます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteLine  オーバーロードされます。 オーバーロードされたパラメータで指定されたデータを HtmlTextWriter 出力ストリームに書き込み、続けて行終端文字列を書き込みます。このメソッドのすべてのバージョンで、保留中のタブ空白文字が出力ストリームに書き込まれます。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteLineNoTabs  文字列を出力ストリームに書き込み、続けて行終端文字列を書き込みます。このメソッドは、指定されたタブ空白文字を無視します。 ( HtmlTextWriter から継承されます。)
パブリック メソッド WriteStyleAttribute  オーバーロードされます。 スタイル属性とその値を出力ストリームに書き込みます。 ( 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 クラス
System.Web.UI 名前空間
HtmlTextWriter

その他の技術情報

チュートリアル : カスタム サーバー コントロールの開発と使用

Html32TextWriter メンバ

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

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 から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド AddAttribute  オーバーロードされます。 HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、指定されたマークアップ属性および値を追加します。 (HtmlTextWriter から継承されます。)
パブリック メソッド AddStyleAttribute  オーバーロードされます。 HtmlTextWriter オブジェクトが後続の RenderBeginTag メソッドの呼び出しで作成する要素の開始タグに、マークアップ スタイル属性を追加します。 (HtmlTextWriter から継承されます。)
パブリック メソッド BeginRender  HtmlTextWriter オブジェクトまたは派生クラスのオブジェクトに、コントロールが出力されようとしていることを通知します。 (HtmlTextWriter から継承されます。)
パブリック メソッド Close  HtmlTextWriter オブジェクトを閉じ、関連付けられているシステム リソースを解放します。 (HtmlTextWriter から継承されます。)
パブリック メソッド CreateObjRef  リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。 (MarshalByRefObject から継承されます。)
パブリック メソッド Dispose  オーバーロードされます。 この TextWriter オブジェクトによって使用されているすべてのリソースを解放します。 (TextWriter から継承されます。)
パブリック メソッド EndRender  HtmlTextWriter オブジェクトまたは派生クラスのオブジェクトに、コントロールの出力が完了したことを通知します。このメソッドを使用して、BeginRender メソッドで開かれたすべてのマークアップ要素を閉じることができます。 (HtmlTextWriter から継承されます。)
パブリック メソッド EnterStyle  オーバーロードされます。 指定されたスタイルのレイアウトと文字書式を実装するための属性を含むマークアップ要素の開始タグを書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド ExitStyle  オーバーロードされます。 指定したレイアウトと文字書式を終了するマークアップ要素の終了タグを書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド Flush  現在の HtmlTextWriter オブジェクトのすべてのバッファをクリアし、バッファ内のすべてのデータを出力ストリームに書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド InitializeLifetimeService  対象のインスタンスの有効期間ポリシーを制御する、有効期間サービス オブジェクトを取得します。 (MarshalByRefObject から継承されます。)
パブリック メソッド IsValidFormAttribute  <form> マークアップ要素の開始タグに確実に属性が出力されるようにするために、属性を確認します。 (HtmlTextWriter から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド RenderBeginTag オーバーロードされます。 オーバーライドされます。 HTML 要素の開始タグを Html32TextWriter 出力ストリームに書き込みます。
パブリック メソッド RenderEndTag オーバーライドされます。 HTML 要素の終了タグをその要素に関連付けられたフォント情報と共に Html32TextWriter 出力ストリームに書き込みます。
パブリック メソッド Synchronized  指定した TextWriter をラップするスレッド セーフ ラッパーを作成します。 (TextWriter から継承されます。)
パブリック メソッド ToString  現在の Object を表す String を返します。 (Object から継承されます。)
パブリック メソッド Write  オーバーロードされます。 保留中のタブ空白文字と共に、指定したデータ型を出力ストリームに書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteAttribute  オーバーロードされます。 マークアップ属性とその値を出力ストリームに書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteBeginTag  タブ空白文字と指定したマークアップ要素の開始タグを出力ストリームに書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteBreak  <br /> マークアップ要素を出力ストリームに書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteEncodedText  指定したテキストを要求側のデバイスに合わせてエンコードし、それを出力ストリームに書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteEncodedUrl  指定した URL をエンコードしてから、出力ストリームに書き込みます。URL には、パラメータを含めることができます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteEncodedUrlParameter  指定した URL パラメータを要求側のデバイスに合わせてエンコードし、それを出力ストリームに書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteEndTag  タブ空白文字と指定したマークアップ要素の終了タグを書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteFullBeginTag  タブ空白文字と指定したマークアップ要素の開始タグを出力ストリームに書き込みます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteLine  オーバーロードされます。 オーバーロードされたパラメータで指定されたデータを HtmlTextWriter 出力ストリームに書き込み、続けて行終端文字列を書き込みます。このメソッドのすべてのバージョンで、保留中のタブ空白文字が出力ストリームに書き込まれます。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteLineNoTabs  文字列を出力ストリームに書き込み、続けて行終端文字列を書き込みます。このメソッドは、指定されたタブ空白文字を無視します。 (HtmlTextWriter から継承されます。)
パブリック メソッド WriteStyleAttribute  オーバーロードされます。 スタイル属性とその値を出力ストリームに書き込みます。 (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 クラス
System.Web.UI 名前空間
HtmlTextWriter

その他の技術情報

チュートリアル : カスタム サーバー コントロールの開発と使用



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「Html32TextWriter」の関連用語

Html32TextWriterのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Html32TextWriterのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS