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

TemplatedControlDesigner クラス

テンプレート ベースサーバー コントロールデザイン時の動作拡張します。

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

Public MustInherit Class
 TemplatedControlDesigner
    Inherits ControlDesigner
Dim instance As TemplatedControlDesigner
public abstract class TemplatedControlDesigner
 : ControlDesigner
public ref class TemplatedControlDesigner abstract
 : public ControlDesigner
public abstract class TemplatedControlDesigner
 extends ControlDesigner
public abstract class TemplatedControlDesigner
 extends ControlDesigner
解説解説

継承時の注意 このクラス使用できないわけではありませんが、テンプレート編集機能が ControlDesigner に組み込まれたため、使用する要はありません。

使用例使用例

テンプレート使用しControlDesigner クラスから派生するコントロール デザイナ クラス作成する方法次のコード例示します

この例を実行するには、コードコンパイルした後、Visual Studio 2005 などのデザイン ホストデザイン ビューページ表示しますコントロール選択しアクション リストクリックして変更するテンプレート選択します次にドラッグ アンド ドロップ機能使用してコントロールテンプレート内に移動します

メモメモ

プロジェクトには、System.Design アセンブリへの参照が必要です。

Imports Microsoft.VisualBasic
Imports System
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.Design

Namespace ASPNet.Design.Samples

    ' Set an attribute reference to the designer, and define 
    ' the HTML markup that the toolbox will write into the source.
    <Designer(GetType(TemplateGroupsSampleDesigner)), _
        ToolboxData("<{0}:TemplateGroupsSample runat=server></{0}:TemplateGroupsSample>")>
 _
    Public Class TemplateGroupsSample
        Inherits WebControl
        Implements INamingContainer

        ' Field for the templates
        Private _templates() As ITemplate

        ' Constructor
        Public Sub New()
            ReDim _templates(4)
        End Sub

        ' For each template property, set the designer attributes 
        ' so the property does not appear in the property grid, but
 
        ' changes to the template are persisted in the control.
        <Browsable(False), _
            PersistenceMode(PersistenceMode.InnerProperty)> _
        Public Property Template1() As
 ITemplate
            Get
                Return _templates(0)
            End Get
            Set(ByVal Value As
 ITemplate)
                _templates(0) = Value
            End Set
        End Property
        <Browsable(False), _
            PersistenceMode(PersistenceMode.InnerProperty)> _
        Public Property Template2() As
 ITemplate
            Get
                Return _templates(1)
            End Get
            Set(ByVal Value As
 ITemplate)
                _templates(1) = Value
            End Set
        End Property
        <Browsable(False), _
            PersistenceMode(PersistenceMode.InnerProperty)> _
        Public Property Template3() As
 ITemplate
            Get
                Return _templates(2)
            End Get
            Set(ByVal Value As
 ITemplate)
                _templates(2) = Value
            End Set
        End Property
        <Browsable(False), _
            PersistenceMode(PersistenceMode.InnerProperty)> _
        Public Property Template4() As
 ITemplate
            Get
                Return _templates(3)
            End Get
            Set(ByVal Value As
 ITemplate)
                _templates(3) = Value
            End Set
        End Property

        Protected Overrides Sub
 CreateChildControls()
            ' Instantiate the template inside the panel
            ' then add the panel to the Controls collection
            Dim i As Integer

            For i = 0 To 3
                Dim pan As New
 Panel()
                _templates(i).InstantiateIn(pan)
                Me.Controls.Add(pan)
            Next
        End Sub

    End Class

    ' Designer for the TemplateGroupsSample class
    Public Class TemplateGroupsSampleDesigner
        Inherits System.Web.UI.Design.ControlDesigner

        Private col As TemplateGroupCollection
 = Nothing

        Public Overrides Sub
 Initialize(ByVal Component As IComponent)
            ' Initialize the base
            MyBase.Initialize(Component)
            ' Turn on template editing
            SetViewFlags(ViewFlags.TemplateEditing, True)
        End Sub

        ' Add instructions to the placeholder view of the control
        Public Overloads Overrides
 Function GetDesignTimeHtml() As String
            Return CreatePlaceHolderDesignTimeHtml("Click
 here and use " & _
                "the task menu to edit the templates.")
        End Function

        Public Overrides ReadOnly
 Property TemplateGroups() As TemplateGroupCollection
            Get
                If IsNothing(col) Then
                    ' Get the base collection
                    col = MyBase.TemplateGroups

                    ' Create variables
                    Dim tempGroup As TemplateGroup
                    Dim tempDef As TemplateDefinition
                    Dim ctl As TemplateGroupsSample

                    ' Get reference to the component as TemplateGroupsSample
                    ctl = CType(Component, TemplateGroupsSample)

                    ' Create a TemplateGroup
                    tempGroup = New TemplateGroup("Template
 Set A")

                    ' Create a TemplateDefinition
                    tempDef = New TemplateDefinition(Me,
 "Template A1", ctl, "Template1",
 True)

                    ' Add the TemplateDefinition to the TemplateGroup
                    tempGroup.AddTemplateDefinition(tempDef)

                    ' Create another TemplateDefinition
                    tempDef = New TemplateDefinition(Me,
 "Template A2", ctl, "Template2",
 True)

                    ' Add the TemplateDefinition to the TemplateGroup
                    tempGroup.AddTemplateDefinition(tempDef)

                    ' Add the TemplateGroup to the TemplateGroupCollection
                    col.Add(tempGroup)

                    ' Create another TemplateGroup and populate it
                    tempGroup = New TemplateGroup("Template
 Set B")
                    tempDef = New TemplateDefinition(Me,
 "Template B1", ctl, "Template3",
 True)
                    tempGroup.AddTemplateDefinition(tempDef)
                    tempDef = New TemplateDefinition(Me,
 "Template B2", ctl, "Template4",
 True)
                    tempGroup.AddTemplateDefinition(tempDef)

                    ' Add the TemplateGroup to the TemplateGroupCollection
                    col.Add(tempGroup)
                End If

                Return col
            End Get
        End Property

        ' Do not allow direct resizing unless in TemplateMode
        Public Overrides ReadOnly
 Property AllowResize() As Boolean
            Get
                If Me.InTemplateMode Then
                    Return True
                Else
                    Return False
                End If
            End Get
        End Property
    End Class
End Namespace
<br /><span space="preserve">...</span><br
 /><%@ Page Language="VB" %>
<%@ Register TagPrefix="aspSample" 
    Namespace="ASPNet.Design.Samples"
 %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html  >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
       <aspSample:TemplateGroupsSample runat=server ID=TGSample1>
       </aspSample:TemplateGroupsSample>
    
    </div>
    </form>
</body>
</html>
using System;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.Design;

namespace ASPNet.Design.Samples
{
    // Set an attribute reference to the designer, and define 
    // the HTML markup that the toolbox will write into the source.
    [Designer(typeof(TemplateGroupsSampleDesigner)),
        ToolboxData("<{0}:TemplateGroupsSample runat=server></{0}:TemplateGroupsSample>")]
    public sealed class TemplateGroupsSample
 : WebControl, INamingContainer
    {
        // Field for the templates
        private ITemplate[] _templates;

        // Constructor
        public TemplateGroupsSample()
        {
            _templates = new ITemplate[4];
        }

        // For each template property, set the designer attributes 
        // so the property does not appear in the property grid, but
 
        // changes to the template are persisted in the control.
        [Browsable(false),
            PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate Template1
        {
            get { return _templates[0]; }
            set { _templates[0] = value; }
        }
        [Browsable(false),
            PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate Template2
        {
            get { return _templates[1]; }
            set { _templates[1] = value; }
        }
        [Browsable(false),
            PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate Template3
        {
            get { return _templates[2]; }
            set { _templates[2] = value; }
        }
        [Browsable(false),
            PersistenceMode(PersistenceMode.InnerProperty)]
        public ITemplate Template4
        {
            get { return _templates[3]; }
            set { _templates[3] = value; }
        }

        protected override void CreateChildControls()
        {
            // Instantiate each template inside a panel
            // then add the panel to the Controls collection
            for (int i = 0; i < 4; i++)
            {
                Panel pan = new Panel();
                _templates[i].InstantiateIn(pan);
                this.Controls.Add(pan);
            }
        }
    }

    // Designer for the TemplateGroupsSample control
    public class TemplateGroupsSampleDesigner
 : ControlDesigner
    {
        TemplateGroupCollection col = null;

        public override void Initialize(IComponent
 component)
        {
            // Initialize the base
            base.Initialize(component);
            // Turn on template editing
            SetViewFlags(ViewFlags.TemplateEditing, true);
        }

        // Add instructions to the placeholder view of the control
        public override string GetDesignTimeHtml()
        {
            return CreatePlaceHolderDesignTimeHtml("Click
 here and use " +
                "the task menu to edit the templates.");
        }

        public override TemplateGroupCollection TemplateGroups
        {
            get
            {

                if (col == null)
                {
                    // Get the base collection
                    col = base.TemplateGroups;

                    // Create variables
                    TemplateGroup tempGroup;
                    TemplateDefinition tempDef;
                    TemplateGroupsSample ctl;

                    // Get reference to the component as TemplateGroupsSample
                    ctl = (TemplateGroupsSample)Component;

                    // Create a TemplateGroup
                    tempGroup = new TemplateGroup("Template
 Set A");

                    // Create a TemplateDefinition
                    tempDef = new TemplateDefinition(this,
 "Template A1", 
                        ctl, "Template1", true);

                    // Add the TemplateDefinition to the TemplateGroup
                    tempGroup.AddTemplateDefinition(tempDef);

                    // Create another TemplateDefinition
                    tempDef = new TemplateDefinition(this,
 "Template A2", 
                        ctl, "Template2", true);

                    // Add the TemplateDefinition to the TemplateGroup
                    tempGroup.AddTemplateDefinition(tempDef);

                    // Add the TemplateGroup to the TemplateGroupCollection
                    col.Add(tempGroup);

                    // Create another TemplateGroup and populate it
                    tempGroup = new TemplateGroup("Template
 Set B");
                    tempDef = new TemplateDefinition(this,
 "Template B1", 
                        ctl, "Template3", true);
                    tempGroup.AddTemplateDefinition(tempDef);
                    tempDef = new TemplateDefinition(this,
 "Template B2", 
                        ctl, "Template4", true);
                    tempGroup.AddTemplateDefinition(tempDef);

                    // Add the TemplateGroup to the TemplateGroupCollection
                    col.Add(tempGroup);
                }

                return col;
            }
        }

        // Do not allow direct resizing unless in TemplateMode
        public override bool AllowResize
        {
            get
            {
                if (this.InTemplateMode)
                    return true;
                else
                    return false;
            }
        }
    }
}
継承階層継承階層
System.Object
   System.ComponentModel.Design.ComponentDesigner
     System.Web.UI.Design.HtmlControlDesigner
       System.Web.UI.Design.ControlDesigner
        System.Web.UI.Design.TemplatedControlDesigner
           System.Web.UI.Design.WebControls.BaseDataListDesigner
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
TemplatedControlDesigner メンバ
System.Web.UI.Design 名前空間
IDesigner
ControlDesigner クラス
その他の技術情報
Web フォームデザインサポート

TemplatedControlDesigner コンストラクタ


TemplatedControlDesigner プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ ActionLists  コントロール デザイナアクション リスト コレクション取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ ActiveTemplateEditingFrame アクティブテンプレート編集フレーム取得します
パブリック プロパティ AllowResize  デザイン環境コントロールサイズ変更できるかどうかを示す値を取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ AssociatedComponents  デザイナ管理されているコンポーネント関連付けられているコンポーネントコレクション取得します。 ( ComponentDesigner から継承されます。)
パブリック プロパティ AutoFormats  関連付けられているコントロールについてデザイン時に [オートフォーマット] ダイアログ ボックス表示する定義済みオートフォーマット スキームコレクション取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ Behavior  デザイナ関連付けられている DHTML 動作取得または設定します。 ( HtmlControlDesigner から継承されます。)
パブリック プロパティ CanEnterTemplateMode このデザイナテンプレート表示編集ができるかどうかを示す値を取得します
パブリック プロパティ Component  デザイナデザインするコンポーネント取得します。 ( ComponentDesigner から継承されます。)
パブリック プロパティ DataBindings  現在のコントロールデータ バインディング コレクション取得します。 ( HtmlControlDesigner から継承されます。)
パブリック プロパティ DesignTimeHtmlRequiresLoadComplete  デザイン ホスト読み込み完了しないと GetDesignTimeHtml メソッド呼び出すことができないかどうかを示す値を取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ Expressions  現在のコントロールの式バインディングデザイン時に取得します。 ( HtmlControlDesigner から継承されます。)
パブリック プロパティ ID  コントロールID 文字列取得または設定します。 ( ControlDesigner から継承されます。)
パブリック プロパティ InTemplateMode デザイナ ドキュメントが現在テンプレート モードかどうかを示す値を取得します
パブリック プロパティ IsDirty  Web サーバー コントロール変更済みとしてマークされているかどうかを示す値を取得または設定します。 ( ControlDesigner から継承されます。)
パブリック プロパティ ReadOnly  コントロールプロパティデザイン時に読み取り専用かどうかを示す値を取得または設定します。 ( ControlDesigner から継承されます。)
パブリック プロパティ ShouldCodeSerialize  シリアル化中に現在のデザイン ドキュメント分離コード ファイル内でコントロールフィールド宣言作成するかどうかを示す値を取得または設定します。 ( HtmlControlDesigner から継承されます。)
パブリック プロパティ TemplateGroups オーバーライドされますテンプレート定義をそれぞれ含むテンプレート グループコレクション取得します
パブリック プロパティ Verbs  デサイナに関連付けられているコンポーネントサポートしているデザイン時の動詞取得します。 ( ComponentDesigner から継承されます。)
パブリック プロパティ ViewControl  デザインHTML マークアッププレビュー用に使用できる Web サーバー コントロール取得または設定します。 ( ControlDesigner から継承されます。)
パブリック プロパティ ViewControlCreated  View コントロールデザイン サーフェイスでの表示用に作成されているかどうかを示す値を取得または設定します。 ( ControlDesigner から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ DataBindingsEnabled オーバーライドされますデザイナデータ バインディング許可するかどうかを示す値を取得します
プロテクト プロパティ DesignerState  デザイン時に関連付けられているコントロールデータ永続化するために使用するオブジェクト取得します。 ( ControlDesigner から継承されます。)
プロテクト プロパティ DesignTimeElement  デザイン サーフェイスの HtmlControlDesigner オブジェクト関連付けられているコントロールを表すデザインオブジェクト取得します。 ( HtmlControlDesigner から継承されます。)
プロテクト プロパティ DesignTimeElementView  コントロール デザイナビュー コントロール オブジェクト取得します。 ( ControlDesigner から継承されます。)
プロテクト プロパティ HidePropertiesInTemplateMode  コントロールテンプレート モードのときに関連付けられているコントロールプロパティが非表示設定されるかどうかを示す値を取得します。 ( ControlDesigner から継承されます。)
プロテクト プロパティ InheritanceAttribute  関連付けられているコンポーネント継承種類を示す属性取得します。 ( ComponentDesigner から継承されます。)
プロテクト プロパティ Inherited  コンポーネント継承されているかどうかを示す値を取得します。 ( ComponentDesigner から継承されます。)
プロテクト プロパティ ParentComponent  このデザイナの親コンポーネント取得します。 ( ComponentDesigner から継承されます。)
プロテクト プロパティ RootDesigner  関連付けられているコントロールを含む Web フォーム ページコントロール デザイナ取得します。 ( ControlDesigner から継承されます。)
プロテクト プロパティ ShadowProperties  ユーザー設定値オーバーライドするプロパティ値のコレクション取得します。 ( ComponentDesigner から継承されます。)
プロテクト プロパティ Tag  関連付けられているコントロールHTML マークアップ要素を表すオブジェクト取得します。 ( ControlDesigner から継承されます。)
プロテクト プロパティ UsePreviewControl  コントロール デザイナ一時プレビュー コントロール使用してデザインHTML マークアップ生成するかどうかを示す値を取得します。 ( ControlDesigner から継承されます。)
参照参照

関連項目

TemplatedControlDesigner クラス
System.Web.UI.Design 名前空間
IDesigner
ControlDesigner クラス

その他の技術情報

Web フォームデザインサポート

TemplatedControlDesigner メソッド


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

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Dispose  オーバーロードされます。 HtmlControlDesigner オブジェクトによって使用されているアンマネージ リソース解放します。オプションマネージ リソース解放できます。 ( HtmlControlDesigner から継承されます。)
パブリック メソッド DoDefaultAction  コンポーネント既定イベント対すメソッド シグネチャソース コード ファイル内に作成しコード内のその位置カーソル移動します。 ( ComponentDesigner から継承されます。)
パブリック メソッド EnterTemplateMode デザイナでの編集のための特定のテンプレート フレーム オブジェクト開きます
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド ExitTemplateMode 関連する変更をすべて保存した後、現在アクティブテンプレート編集フレーム閉じます
パブリック メソッド GetBounds  デザイン サーフェイス表示されるコントロール境界を表す四角形座標取得します。 ( ControlDesigner から継承されます。)
パブリック メソッド GetDesignTimeHtml  オーバーロードされますデザイン時にコントロールを表すために使用する HTML マークアップ取得します。 ( ControlDesigner から継承されます。)
パブリック メソッド GetDesignTimeResourceProviderFactory  サイトの構成ファイル内のグローバリゼーション設定に応じて適切なリソース プロバイダ ファクトリを返します。 ( ControlDesigner から継承されます。)
パブリック メソッド GetEditableDesignerRegionContent  関連付けられたコントロールデザインビュー編集可能領域内容返します。 ( ControlDesigner から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetPersistenceContent  コントロール永続化できる内部 HTML マークアップデザイン時に取得します。 ( ControlDesigner から継承されます。)
パブリック メソッド GetPersistInnerHtml  コントロール永続化できる内部 HTML マークアップ取得します。 ( ControlDesigner から継承されます。)
パブリック メソッド GetTemplateContainerDataItemProperty テンプレートコンテナデータ項目プロパティ取得します
パブリック メソッド GetTemplateContainerDataSource テンプレートコンテナデータ ソース取得します
パブリック メソッド GetTemplateContent 派生クラスオーバーライドされると、テンプレート内容取得します
パブリック メソッド GetTemplateEditingVerbs デザイナ使用できるテンプレート編集動詞取得します
パブリック メソッド GetTemplatePropertyParentType テンプレート プロパティの親の型を取得します
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド GetViewRendering  オーバーロードされます関連付けられているコントロール内容および領域デザインマークアップ格納しているオブジェクト取得します。 ( ControlDesigner から継承されます。)
パブリック メソッド Initialize オーバーライドされますデザイナ初期化し指定されコンポーネント読み込みます。
パブリック メソッド InitializeExistingComponent  既存コンポーネントを再初期化します。 ( ComponentDesigner から継承されます。)
パブリック メソッド InitializeNewComponent  新規作成したコンポーネント初期化します。 ( ComponentDesigner から継承されます。)
パブリック メソッド InitializeNonDefault  既定値以外の値に既に初期化されている、インポートされたコンポーネント設定値初期化します。 ( ComponentDesigner から継承されます。)
パブリック メソッド Invalidate  オーバーロードされますデザイン サーフェイス表示されコントロール無効化し、デザイン ホストによって OnPaint メソッド呼び出されるようにします。 ( ControlDesigner から継承されます。)
パブリック メソッド InvokeTransactedChange  オーバーロードされます一連の変更を、指定されパラメータ使用してデザイン ホストが持つ元に戻す機能によってまとめてロールバックできるトランザクションに、ラップます。 ( ControlDesigner から継承されます。)
パブリック メソッド IsPropertyBound  関連付けられているコントロール指定されプロパティデータ バインドされているかどうかを示す値を取得します。 ( ControlDesigner から継承されます。)
パブリック メソッド Localize  提供されリソース ライタ使用して関連付けられているコントロールローカライズ可能なプロパティデザイン ホストリソース永続化ます。 ( ControlDesigner から継承されます。)
パブリック メソッド OnAutoFormatApplied  定義済みオートフォーマット スキーム関連付けられているコントロール適用されているときに呼び出されます。 ( ControlDesigner から継承されます。)
パブリック メソッド OnComponentChanged オーバーライドされますコンポーネント変更済みイベント処理するデリゲート
パブリック メソッド OnComponentChanging  関連付けられているコントロールの ComponentChanging イベント処理するメソッド表します。 ( ControlDesigner から継承されます。)
パブリック メソッド OnSetComponentDefaults  コンポーネント既定プロパティ設定します。 ( ComponentDesigner から継承されます。)
パブリック メソッド OnSetParent オーバーライドされます。 このデザイナの親が変更され場合に、追加処理を実行できるようにします。
パブリック メソッド RaiseResizeEvent  OnControlResize イベント発生させます。 ( ControlDesigner から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド RegisterClone  複製作成されコントロール内部データ登録します。 ( ControlDesigner から継承されます。)
パブリック メソッド SetEditableDesignerRegionContent  デザイン時にコントロール編集可能領域内容指定します。 ( ControlDesigner から継承されます。)
パブリック メソッド SetTemplateContent 派生クラスオーバーライドされた場合は、指定されテンプレート内容を、指定され内容設定します
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
パブリック メソッド UpdateDesignTimeHtml オーバーライドされますデザインHTML更新します
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド CreateErrorDesignTimeHtml  オーバーロードされますデザイン時にエラー メッセージ表示するための HTML マークアップ作成します。 ( ControlDesigner から継承されます。)
プロテクト メソッド CreatePlaceHolderDesignTimeHtml  オーバーロードされますコントロール種類ID表示する単純な四角形のプレースホルダ表示提供します。 ( ControlDesigner から継承されます。)
プロテクト メソッド CreateTemplateEditingFrame 派生クラスによってオーバーライドされると、指定され動詞テンプレート編集フレーム作成します
プロテクト メソッド CreateViewControl  デザイン サーフェイス表示または描画するために関連付けられているコントロールコピー返します。 ( ControlDesigner から継承されます。)
プロテクト メソッド Dispose  オーバーロードされますHtmlControlDesigner オブジェクトによって使用されているアンマネージ リソース解放します。オプションマネージ リソース解放できます。 ( HtmlControlDesigner から継承されます。)
プロテクト メソッド Finalize  ガベージ コレクションオブジェクトクリアされる前にDispose(false)呼び出してリソース解放試みます。 ( ComponentDesigner から継承されます。)
プロテクト メソッド GetCachedTemplateEditingVerbs キャッシュされたテンプレート編集動詞取得します
プロテクト メソッド GetEmptyDesignTimeHtml  実行時ビジュアルな表示存在しない Web サーバー コントロールデザイン時に表すための HTML マークアップ取得します。 ( ControlDesigner から継承されます。)
プロテクト メソッド GetErrorDesignTimeHtml  指定され例外に関する情報提供する HTML マークアップ取得します。 ( ControlDesigner から継承されます。)
プロテクト メソッド GetService  デザイナコンポーネントデザイン モード サイトから、指定した型のサービス取得試みます。 ( ComponentDesigner から継承されます。)
プロテクト メソッド GetTemplateFromText 指定したテキストからテンプレート作成します
プロテクト メソッド GetTextFromTemplate 指定したテンプレートを表すテキスト文字列取得します
プロテクト メソッド InvokeGetInheritanceAttribute  指定した ComponentDesigner の InheritanceAttribute を取得します。 ( ComponentDesigner から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 ( Object から継承されます。)
プロテクト メソッド OnBehaviorAttached オーバーライドされますデザイナ動作結び付けられている場合に、追加処理を実行できるようにします。
プロテクト メソッド OnBehaviorDetaching  動作要素関連付け解除されたときに呼び出されます。 ( HtmlControlDesigner から継承されます。)
プロテクト メソッド OnBindingsCollectionChanged  データ バインディング コレクション変更されると、呼び出されます。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnClick  関連付けられているコントロールデザイン時にユーザークリックすると、デザイン ホストによって呼び出されます。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnControlResize  関連付けられている Web サーバー コントロールサイズデザイン時にデザイン ホスト変更され場合呼び出されます。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnPaint  CustomPaint 値が true場合に、コントロール デザイナ関連付けられているコントロールデザイン サーフェイス描画する呼び出されます。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnTemplateModeChanged テンプレート モード変更され場合に、追加処理を実行できるようにします。
プロテクト メソッド PostFilterAttributes  デザイナが、TypeDescriptor を通じて公開する一連の属性から、項目を変更または削除できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PostFilterEvents  デザイナが、TypeDescriptor通じて公開する一連のイベントから、項目を変更または削除できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PostFilterProperties  デザイナが、TypeDescriptor通じて公開する一連のプロパティから、項目を変更または削除できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterAttributes  デザイナが、TypeDescriptor通じて公開する一連の属性に項目を追加できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterEvents  デザイン時にコンポーネントTypeDescriptor オブジェクト公開されているイベントリスト設定します。 ( HtmlControlDesigner から継承されます。)
プロテクト メソッド PreFilterProperties  デザイン時にデザイン ホストプロパティ グリッド対象プロパティ追加削除行ったり、関連付けられたコントロール上のプロパティ対応する新しデザインプロパティ提供したりします。 ( ControlDesigner から継承されます。)
プロテクト メソッド RaiseComponentChanged  コンポーネント変更されたことを IComponentChangeService に通知します。 ( ComponentDesigner から継承されます。)
プロテクト メソッド RaiseComponentChanging  コンポーネント変更されようとしていることを IComponentChangeService通知します。 ( ComponentDesigner から継承されます。)
プロテクト メソッド SaveActiveTemplateEditingFrame アクティブテンプレート編集フレーム保存します
プロテクト メソッド SetRegionContent  コントロールデザインビュー編集可能領域内容指定します。 ( ControlDesigner から継承されます。)
プロテクト メソッド SetViewFlags  指定したビットごとの ViewFlags 列挙体を指定したフラグ値に割り当てます。 ( ControlDesigner から継承されます。)
参照参照

関連項目

TemplatedControlDesigner クラス
System.Web.UI.Design 名前空間
IDesigner
ControlDesigner クラス

その他の技術情報

Web フォームデザインサポート

TemplatedControlDesigner メンバ

テンプレート ベースサーバー コントロールデザイン時の動作拡張します。

TemplatedControlDesigner データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド TemplatedControlDesigner TemplatedControlDesigner クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ ActionLists  コントロール デザイナアクション リスト コレクション取得します。(ControlDesigner から継承されます。)
パブリック プロパティ ActiveTemplateEditingFrame アクティブテンプレート編集フレーム取得します
パブリック プロパティ AllowResize  デザイン環境コントロールサイズ変更できるかどうかを示す値を取得します。(ControlDesigner から継承されます。)
パブリック プロパティ AssociatedComponents  デザイナ管理されているコンポーネント関連付けられているコンポーネントコレクション取得します。(ComponentDesigner から継承されます。)
パブリック プロパティ AutoFormats  関連付けられているコントロールについてデザイン時に [オートフォーマット] ダイアログ ボックス表示する定義済みオートフォーマット スキームコレクション取得します。 (ControlDesigner から継承されます。)
パブリック プロパティ Behavior  デザイナ関連付けられている DHTML 動作取得または設定します。(HtmlControlDesigner から継承されます。)
パブリック プロパティ CanEnterTemplateMode このデザイナテンプレート表示編集ができるかどうかを示す値を取得します
パブリック プロパティ Component  デザイナデザインするコンポーネント取得します。(ComponentDesigner から継承されます。)
パブリック プロパティ DataBindings  現在のコントロールデータ バインディング コレクション取得します。(HtmlControlDesigner から継承されます。)
パブリック プロパティ DesignTimeHtmlRequiresLoadComplete  デザイン ホスト読み込み完了しないと GetDesignTimeHtml メソッド呼び出すことができないかどうかを示す値を取得します。(ControlDesigner から継承されます。)
パブリック プロパティ Expressions  現在のコントロールの式バインディングデザイン時に取得します。(HtmlControlDesigner から継承されます。)
パブリック プロパティ ID  コントロールID 文字列取得または設定します。(ControlDesigner から継承されます。)
パブリック プロパティ InTemplateMode デザイナ ドキュメントが現在テンプレート モードかどうかを示す値を取得します
パブリック プロパティ IsDirty  Web サーバー コントロール変更済みとしてマークされているかどうかを示す値を取得または設定します。(ControlDesigner から継承されます。)
パブリック プロパティ ReadOnly  コントロールプロパティデザイン時に読み取り専用かどうかを示す値を取得または設定します。(ControlDesigner から継承されます。)
パブリック プロパティ ShouldCodeSerialize  シリアル化中に現在のデザイン ドキュメント分離コード ファイル内でコントロールフィールド宣言作成するかどうかを示す値を取得または設定します。(HtmlControlDesigner から継承されます。)
パブリック プロパティ TemplateGroups オーバーライドされますテンプレート定義をそれぞれ含むテンプレート グループコレクション取得します
パブリック プロパティ Verbs  デサイナに関連付けられているコンポーネントサポートしているデザイン時の動詞取得します。(ComponentDesigner から継承されます。)
パブリック プロパティ ViewControl  デザインHTML マークアッププレビュー用に使用できる Web サーバー コントロール取得または設定します。(ControlDesigner から継承されます。)
パブリック プロパティ ViewControlCreated  View コントロールデザイン サーフェイスでの表示用に作成されているかどうかを示す値を取得または設定します。(ControlDesigner から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ DataBindingsEnabled オーバーライドされますデザイナデータ バインディング許可するかどうかを示す値を取得します
プロテクト プロパティ DesignerState  デザイン時に関連付けられているコントロールデータ永続化するために使用するオブジェクト取得します。(ControlDesigner から継承されます。)
プロテクト プロパティ DesignTimeElement  デザイン サーフェイスHtmlControlDesigner オブジェクト関連付けられているコントロールを表すデザインオブジェクト取得します。(HtmlControlDesigner から継承されます。)
プロテクト プロパティ DesignTimeElementView  コントロール デザイナビュー コントロール オブジェクト取得します。(ControlDesigner から継承されます。)
プロテクト プロパティ HidePropertiesInTemplateMode  コントロールテンプレート モードのときに関連付けられているコントロールプロパティが非表示設定されるかどうかを示す値を取得します。(ControlDesigner から継承されます。)
プロテクト プロパティ InheritanceAttribute  関連付けられているコンポーネント継承種類を示す属性取得します。(ComponentDesigner から継承されます。)
プロテクト プロパティ Inherited  コンポーネント継承されているかどうかを示す値を取得します。(ComponentDesigner から継承されます。)
プロテクト プロパティ ParentComponent  このデザイナの親コンポーネント取得します。(ComponentDesigner から継承されます。)
プロテクト プロパティ RootDesigner  関連付けられているコントロールを含む Web フォーム ページコントロール デザイナ取得します。(ControlDesigner から継承されます。)
プロテクト プロパティ ShadowProperties  ユーザー設定値オーバーライドするプロパティ値のコレクション取得します。(ComponentDesigner から継承されます。)
プロテクト プロパティ Tag  関連付けられているコントロールHTML マークアップ要素を表すオブジェクト取得します。(ControlDesigner から継承されます。)
プロテクト プロパティ UsePreviewControl  コントロール デザイナ一時プレビュー コントロール使用してデザインHTML マークアップ生成するかどうかを示す値を取得します。(ControlDesigner から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Dispose  オーバーロードされます。 HtmlControlDesigner オブジェクトによって使用されているアンマネージ リソース解放します。オプションマネージ リソース解放できます。 (HtmlControlDesigner から継承されます。)
パブリック メソッド DoDefaultAction  コンポーネント既定イベント対すメソッド シグネチャソース コード ファイル内に作成しコード内のその位置カーソル移動します。 (ComponentDesigner から継承されます。)
パブリック メソッド EnterTemplateMode デザイナでの編集のための特定のテンプレート フレーム オブジェクト開きます
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド ExitTemplateMode 関連する変更をすべて保存した後、現在アクティブテンプレート編集フレーム閉じます
パブリック メソッド GetBounds  デザイン サーフェイス表示されるコントロール境界を表す四角形座標取得します。 (ControlDesigner から継承されます。)
パブリック メソッド GetDesignTimeHtml  オーバーロードされますデザイン時にコントロールを表すために使用する HTML マークアップ取得します。 (ControlDesigner から継承されます。)
パブリック メソッド GetDesignTimeResourceProviderFactory  サイトの構成ファイル内のグローバリゼーション設定に応じて適切なリソース プロバイダ ファクトリを返します。 (ControlDesigner から継承されます。)
パブリック メソッド GetEditableDesignerRegionContent  関連付けられたコントロールデザインビュー編集可能領域内容返します。 (ControlDesigner から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetPersistenceContent  コントロール永続化できる内部 HTML マークアップデザイン時に取得します。 (ControlDesigner から継承されます。)
パブリック メソッド GetPersistInnerHtml  コントロール永続化できる内部 HTML マークアップ取得します。 (ControlDesigner から継承されます。)
パブリック メソッド GetTemplateContainerDataItemProperty テンプレートコンテナデータ項目プロパティ取得します
パブリック メソッド GetTemplateContainerDataSource テンプレートコンテナデータ ソース取得します
パブリック メソッド GetTemplateContent 派生クラスオーバーライドされると、テンプレート内容取得します
パブリック メソッド GetTemplateEditingVerbs デザイナ使用できるテンプレート編集動詞取得します
パブリック メソッド GetTemplatePropertyParentType テンプレート プロパティの親の型を取得します
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド GetViewRendering  オーバーロードされます関連付けられているコントロール内容および領域デザインマークアップ格納しているオブジェクト取得します。 (ControlDesigner から継承されます。)
パブリック メソッド Initialize オーバーライドされますデザイナ初期化し指定されコンポーネント読み込みます。
パブリック メソッド InitializeExistingComponent  既存コンポーネントを再初期化します。 (ComponentDesigner から継承されます。)
パブリック メソッド InitializeNewComponent  新規作成したコンポーネント初期化します。 (ComponentDesigner から継承されます。)
パブリック メソッド InitializeNonDefault  既定値以外の値に既に初期化されている、インポートされたコンポーネント設定値初期化します。 (ComponentDesigner から継承されます。)
パブリック メソッド Invalidate  オーバーロードされますデザイン サーフェイス表示されコントロール無効化し、デザイン ホストによって OnPaint メソッド呼び出されるようにします。 (ControlDesigner から継承されます。)
パブリック メソッド InvokeTransactedChange  オーバーロードされます一連の変更を、指定されパラメータ使用してデザイン ホストが持つ元に戻す機能によってまとめてロールバックできるトランザクションに、ラップます。 (ControlDesigner から継承されます。)
パブリック メソッド IsPropertyBound  関連付けられているコントロール指定されプロパティデータ バインドされているかどうかを示す値を取得します。 (ControlDesigner から継承されます。)
パブリック メソッド Localize  提供されリソース ライタ使用して関連付けられているコントロールローカライズ可能なプロパティデザイン ホストリソース永続化ます。 (ControlDesigner から継承されます。)
パブリック メソッド OnAutoFormatApplied  定義済みオートフォーマット スキーム関連付けられているコントロール適用されているときに呼び出されます。 (ControlDesigner から継承されます。)
パブリック メソッド OnComponentChanged オーバーライドされますコンポーネント変更済みイベント処理するデリゲート
パブリック メソッド OnComponentChanging  関連付けられているコントロールの ComponentChanging イベント処理するメソッド表します。 (ControlDesigner から継承されます。)
パブリック メソッド OnSetComponentDefaults  コンポーネント既定プロパティ設定します。 (ComponentDesigner から継承されます。)
パブリック メソッド OnSetParent オーバーライドされます。 このデザイナの親が変更され場合に、追加処理を実行できるようにします。
パブリック メソッド RaiseResizeEvent  OnControlResize イベント発生させます。 (ControlDesigner から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド RegisterClone  複製作成されコントロール内部データ登録します。 (ControlDesigner から継承されます。)
パブリック メソッド SetEditableDesignerRegionContent  デザイン時にコントロール編集可能領域内容指定します。 (ControlDesigner から継承されます。)
パブリック メソッド SetTemplateContent 派生クラスオーバーライドされた場合は、指定されテンプレート内容を、指定され内容設定します
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
パブリック メソッド UpdateDesignTimeHtml オーバーライドされますデザインHTML更新します
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド CreateErrorDesignTimeHtml  オーバーロードされますデザイン時にエラー メッセージ表示するための HTML マークアップ作成します。 (ControlDesigner から継承されます。)
プロテクト メソッド CreatePlaceHolderDesignTimeHtml  オーバーロードされますコントロール種類ID表示する単純な四角形のプレースホルダ表示提供します。 (ControlDesigner から継承されます。)
プロテクト メソッド CreateTemplateEditingFrame 派生クラスによってオーバーライドされると、指定され動詞テンプレート編集フレーム作成します
プロテクト メソッド CreateViewControl  デザイン サーフェイス表示または描画するために関連付けられているコントロールコピー返します。 (ControlDesigner から継承されます。)
プロテクト メソッド Dispose  オーバーロードされますHtmlControlDesigner オブジェクトによって使用されているアンマネージ リソース解放します。オプションマネージ リソース解放できます。 (HtmlControlDesigner から継承されます。)
プロテクト メソッド Finalize  ガベージ コレクションオブジェクトクリアされる前にDispose(false)呼び出してリソース解放試みます。 (ComponentDesigner から継承されます。)
プロテクト メソッド GetCachedTemplateEditingVerbs キャッシュされたテンプレート編集動詞取得します
プロテクト メソッド GetEmptyDesignTimeHtml  実行時ビジュアルな表示存在しない Web サーバー コントロールデザイン時に表すための HTML マークアップ取得します。 (ControlDesigner から継承されます。)
プロテクト メソッド GetErrorDesignTimeHtml  指定され例外に関する情報提供する HTML マークアップ取得します。 (ControlDesigner から継承されます。)
プロテクト メソッド GetService  デザイナコンポーネントデザイン モード サイトから、指定した型のサービス取得試みます。 (ComponentDesigner から継承されます。)
プロテクト メソッド GetTemplateFromText 指定したテキストからテンプレート作成します
プロテクト メソッド GetTextFromTemplate 指定したテンプレートを表すテキスト文字列取得します
プロテクト メソッド InvokeGetInheritanceAttribute  指定した ComponentDesigner の InheritanceAttribute を取得します。 (ComponentDesigner から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 (Object から継承されます。)
プロテクト メソッド OnBehaviorAttached オーバーライドされますデザイナ動作結び付けられている場合に、追加処理を実行できるようにします。
プロテクト メソッド OnBehaviorDetaching  動作要素関連付け解除されたときに呼び出されます。 (HtmlControlDesigner から継承されます。)
プロテクト メソッド OnBindingsCollectionChanged  データ バインディング コレクション変更されると、呼び出されます。 (ControlDesigner から継承されます。)
プロテクト メソッド OnClick  関連付けられているコントロールデザイン時にユーザークリックすると、デザイン ホストによって呼び出されます。 (ControlDesigner から継承されます。)
プロテクト メソッド OnControlResize  関連付けられている Web サーバー コントロールサイズデザイン時にデザイン ホスト変更され場合呼び出されます。 (ControlDesigner から継承されます。)
プロテクト メソッド OnPaint  CustomPaint 値が true場合に、コントロール デザイナ関連付けられているコントロールデザイン サーフェイス描画する呼び出されます。 (ControlDesigner から継承されます。)
プロテクト メソッド OnTemplateModeChanged テンプレート モード変更され場合に、追加処理を実行できるようにします。
プロテクト メソッド PostFilterAttributes  デザイナが、TypeDescriptor を通じて公開する一連の属性から、項目を変更または削除できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PostFilterEvents  デザイナが、TypeDescriptor通じて公開する一連のイベントから、項目を変更または削除できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PostFilterProperties  デザイナが、TypeDescriptor通じて公開する一連のプロパティから、項目を変更または削除できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterAttributes  デザイナが、TypeDescriptor通じて公開する一連の属性に項目を追加できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterEvents  デザイン時にコンポーネントTypeDescriptor オブジェクト公開されているイベントリスト設定します。 (HtmlControlDesigner から継承されます。)
プロテクト メソッド PreFilterProperties  デザイン時にデザイン ホストプロパティ グリッド対象プロパティ追加削除行ったり、関連付けられたコントロール上のプロパティ対応する新しデザインプロパティ提供したりします。 (ControlDesigner から継承されます。)
プロテクト メソッド RaiseComponentChanged  コンポーネント変更されたことを IComponentChangeService に通知します。 (ComponentDesigner から継承されます。)
プロテクト メソッド RaiseComponentChanging  コンポーネント変更されようとしていることを IComponentChangeService通知します。 (ComponentDesigner から継承されます。)
プロテクト メソッド SaveActiveTemplateEditingFrame アクティブテンプレート編集フレーム保存します
プロテクト メソッド SetRegionContent  コントロールデザインビュー編集可能領域内容指定します。 (ControlDesigner から継承されます。)
プロテクト メソッド SetViewFlags  指定したビットごとの ViewFlags 列挙体を指定したフラグ値に割り当てます。 (ControlDesigner から継承されます。)
参照参照

関連項目

TemplatedControlDesigner クラス
System.Web.UI.Design 名前空間
IDesigner
ControlDesigner クラス

その他の技術情報

Web フォームデザインサポート



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

辞書ショートカット

すべての辞書の索引

「TemplatedControlDesigner」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS