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

その他の技術情報

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



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Html32TextWriter」の関連用語

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

   

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



Html32TextWriterのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS