DetailsViewDesigner クラス

定義

DetailsView コントロールを、ビジュアル デザイナーで、デザイン時に使用できるようにします。

public ref class DetailsViewDesigner : System::Web::UI::Design::WebControls::DataBoundControlDesigner
public class DetailsViewDesigner : System.Web.UI.Design.WebControls.DataBoundControlDesigner
type DetailsViewDesigner = class
    inherit DataBoundControlDesigner
Public Class DetailsViewDesigner
Inherits DataBoundControlDesigner
継承

次のコード例は、 クラスを拡張して、 DetailsViewDesigner デザイン時にコントロールから派生したコントロールの外観を変更する方法を DetailsView 示しています。

この例では、 からコントロールをMyDetailsViewDetailsView派生させます。 MyDetailsViewは単にコントロールのDetailsViewコピーです。 この例では、 から クラスをMyDetailsViewDesigner派生させ、 の オブジェクトMyDetailsViewDesignerDesignerAttribute コントロールにMyDetailsView配置DetailsViewDesignerします。

The MyDetailsViewDesigner は、 プロパティを SampleRowCount オーバーライドして、 のデザイン時ビューのポケットベル行に 5 つのページ リンクが含まれていることを MyDetailsView 指定します。 メソッドを PreFilterProperties オーバーライドして、プロパティを NamingContainer デザイン時に Property グリッドに表示します。 プロパティが GetDesignTimeHtml 指定されている場合は、 メソッドを Caption オーバーライドして、デザイン時にグリッドの新しい最初の行としてプロパティを MyDetailsView 含めます。 の プロパティが BorderStyle または None の値のMyDetailsView場合、 GetDesignTimeHtmlNotSetコントロールの周囲に青い破線の境界線を描画して、その範囲をより見えるようにします。

using System;
using System.Web;
using System.Drawing;
using System.Web.UI.WebControls;
using System.Web.UI.Design.WebControls;
using System.Collections;
using System.ComponentModel;
using System.Security.Permissions;

namespace Examples.CS.WebControls.Design
{
    // The MyDetailsView is a copy of the DetailsView.
    [AspNetHostingPermission(SecurityAction.Demand, 
        Level = AspNetHostingPermissionLevel.Minimal)]
    [AspNetHostingPermission(SecurityAction.InheritanceDemand, 
        Level = AspNetHostingPermissionLevel.Minimal)]
    [Designer(typeof(Examples.CS.WebControls.Design.MyDetailsViewDesigner))]
    public class MyDetailsView : DetailsView
    {
    } // MyDetailsView

    // Override members of the DetailsViewDesigner.
    [ReflectionPermission(SecurityAction.Demand, Flags=ReflectionPermissionFlag.MemberAccess)]
    public class MyDetailsViewDesigner : DetailsViewDesigner
    {
        // Determines the number of page links in the pager row
        // when viewed in the designer.
        protected override int SampleRowCount
        {
            get
            {
                // Render five page links in the pager row.
                return 5;
            }
        } // SampleRowCount

        // Shadow the control properties with design-time properties.
        protected override void PreFilterProperties(IDictionary properties)
        {
            // Call the base method first.
            base.PreFilterProperties(properties);

            // Make the NamingContainer visible in the Properties grid.
            PropertyDescriptor selectProp = 
                (PropertyDescriptor)properties["NamingContainer"];
            properties["NamingContainer"] =
                TypeDescriptor.CreateProperty(selectProp.ComponentType, 
                    selectProp, BrowsableAttribute.Yes);
        } // PreFilterProperties

        // Generate the design-time markup.
        const string capTag = "caption";
        const string trOpen = "tr><td colspan=2 align=center";
        const string trClose = "td></tr";

        public override string GetDesignTimeHtml()
        {
            // Make the full extent of the control more visible in the designer.
            // If the border style is None or NotSet, change the border to
            // a wide, blue, dashed line. Include the caption within the border.
            MyDetailsView myDV = (MyDetailsView)Component;
            string markup = null;
            int charX;

            // Check if the border style should be changed.
            if (myDV.BorderStyle == BorderStyle.NotSet ||
                myDV.BorderStyle == BorderStyle.None)
            {
                BorderStyle oldBorderStyle = myDV.BorderStyle;
                Unit oldBorderWidth = myDV.BorderWidth;
                Color oldBorderColor = myDV.BorderColor;

                // Set design-time properties and catch any exceptions.
                try
                {
                    myDV.BorderStyle = BorderStyle.Dashed;
                    myDV.BorderWidth = Unit.Pixel(3);
                    myDV.BorderColor = Color.Blue;

                    // Call the base method to generate the markup.
                    markup = base.GetDesignTimeHtml();
                }
                catch (Exception ex)
                {
                    markup = GetErrorDesignTimeHtml(ex);
                }
                finally
                {
                    // Restore the properties to their original settings.
                    myDV.BorderStyle = oldBorderStyle;
                    myDV.BorderWidth = oldBorderWidth;
                    myDV.BorderColor = oldBorderColor;
                }
            }
            else
            {
                // Call the base method to generate the markup.
                markup = base.GetDesignTimeHtml();
            }

            // Look for a <caption> tag.
            if ((charX = markup.IndexOf(capTag)) > 0)
            {
                // Replace the first caption with 
                // "tr><td colspan=2 align=center".
                markup = markup.Remove(charX,
                    capTag.Length).Insert(charX, trOpen);

                // Replace the second caption with "td></tr".
                if ((charX = markup.IndexOf(capTag, charX)) > 0)
                    markup = markup.Remove(charX,
                        capTag.Length).Insert(charX, trClose); 
            }
            return markup;
        } // GetDesignTimeHtml
    } // MyDetailsViewDesigner
} // Examples.CS.WebControls.Design
Imports System.Web
Imports System.Drawing
Imports System.Web.UI.WebControls
Imports System.Web.UI.Design.WebControls
Imports System.Collections
Imports System.ComponentModel
Imports System.Security.Permissions

Namespace Examples.VB.WebControls.Design

    ' The MyDetailsView is a copy of the DetailsView.
    <AspNetHostingPermission(SecurityAction.Demand, _
        Level:=AspNetHostingPermissionLevel.Minimal)> _
    <AspNetHostingPermission(SecurityAction.InheritanceDemand, _
        Level:=AspNetHostingPermissionLevel.Minimal)> _
    <Designer(GetType(Examples.VB.WebControls.Design.MyDetailsViewDesigner))> _
    Public Class MyDetailsView
        Inherits DetailsView
    End Class

    ' Override members of the DetailsViewDesigner.
    <ReflectionPermission(SecurityAction.Demand, Flags:=ReflectionPermissionFlag.MemberAccess)> _
    Public Class MyDetailsViewDesigner
        Inherits DetailsViewDesigner

        ' Determines the number of page links in the pager row
        ' when viewed in the designer.
        Protected Overrides ReadOnly Property SampleRowCount() As Integer
            Get
                ' Render five page links in the pager row.
                Return 5
            End Get
        End Property ' SampleRowCount

        ' Shadow the control properties with design-time properties.
        Protected Overrides Sub PreFilterProperties( _
            ByVal properties As IDictionary)

            ' Call the base method first.
            MyBase.PreFilterProperties(properties)

            ' Make the NamingContainer visible in the Properties grid.
            Dim selectProp As PropertyDescriptor = _
                CType(properties("NamingContainer"), PropertyDescriptor)
            properties("NamingContainer") = _
                TypeDescriptor.CreateProperty(selectProp.ComponentType, _
                    selectProp, BrowsableAttribute.Yes)
        End Sub

        ' Generate the design-time markup.
        Private Const capTag As String = "caption"
        Private Const trOpen As String = "tr><td colspan=2 align=center"
        Private Const trClose As String = "td></tr"

        Public Overrides Function GetDesignTimeHtml() As String

            ' Make the full extent of the control more visible in the designer.
            ' If the border style is None or NotSet, change the border to
            ' a wide, blue, dashed line. Include the caption within the border.
            Dim myDV As MyDetailsView = CType(Component, MyDetailsView)
            Dim markup As String = Nothing
            Dim charX As Integer

            ' Check if the border style should be changed.
            If (myDV.BorderStyle = BorderStyle.NotSet Or _
                myDV.BorderStyle = BorderStyle.None) Then

                Dim oldBorderStyle As BorderStyle = myDV.BorderStyle
                Dim oldBorderWidth As Unit = myDV.BorderWidth
                Dim oldBorderColor As Color = myDV.BorderColor

                ' Set design-time properties and catch any exceptions.
                Try
                    myDV.BorderStyle = BorderStyle.Dashed
                    myDV.BorderWidth = Unit.Pixel(3)
                    myDV.BorderColor = Color.Blue

                    ' Call the base method to generate the markup.
                    markup = MyBase.GetDesignTimeHtml()

                Catch ex As Exception
                    markup = GetErrorDesignTimeHtml(ex)

                Finally
                    ' Restore the properties to their original settings.
                    myDV.BorderStyle = oldBorderStyle
                    myDV.BorderWidth = oldBorderWidth
                    myDV.BorderColor = oldBorderColor
                End Try

            Else
                ' Call the base method to generate the markup.
                markup = MyBase.GetDesignTimeHtml()
            End If

            ' Look for a <caption> tag.
            charX = markup.IndexOf(capTag)
            If charX > 0 Then

                ' Replace the first caption with 
                ' "tr><td colspan=2 align=center".
                markup = markup.Remove(charX, _
                    capTag.Length).Insert(charX, trOpen)

                ' Replace the second caption with "td></tr".
                charX = markup.IndexOf(capTag, charX)
                If charX > 0 Then
                    markup = markup.Remove(charX, _
                        capTag.Length).Insert(charX, trClose)
                End If
            End If

            Return markup

        End Function ' GetDesignTimeHtml
    End Class
End Namespace ' Examples.VB.WebControls.Design

注釈

ビジュアル デザイナーで、[ソース] ビューから [デザイン] ビューに切り替えると、コントロールを記述 DetailsView するマークアップ ソース コードが解析され、デザイン サーフェイスにコントロールのデザイン時バージョンが作成されます。 ソース ビューに戻ると、デザイン時コントロールはマークアップ ソース コードに永続化され、Web ページのマークアップに編集されます。

クラスの DetailsViewDesigner プロパティには、次の機能があります。

  • プロパティは ActionLists 、通常、デザイナーの DesignerActionListCollection 継承ツリーの各レベルの クラスから DesignerActionList 派生した オブジェクトを含む オブジェクトを返します。

  • プロパティは AutoFormats 、[ 自動 書式] ダイアログ ボックスに表示する書式パターンのコレクションを返します。

  • プロパティは TemplateGroups 、関連付けられた DetailsView コントロールと最上位 DetailsView のテンプレートのフィールドのテンプレート グループのコレクションを返します。

  • プロパティは UsePreviewControl 常に を返 trueします。これは、デザイナーが関連付けられた DetailsView コントロールの一時的なコピーを作成してデザイン時マークアップを生成することを示します。

クラス メソッドには DetailsViewDesigner 、次の機能があります。

  • メソッドは DataBind 、関連付けられた DetailsView コントロールをデザイン時データ ソースにバインドします。

  • メソッドは GetDesignTimeHtml 、デザイン時に関連付けられた DetailsView をレンダリングするために使用されるマークアップを返します。

  • メソッドは Initialize 、デザイナーが、関連付けられている DetailsViewを表示、編集、およびデザインできるように準備します。

  • メソッドは OnClick 、関連付けられている DetailsView のデザイン時ビューの領域がクリックされたときに呼び出されます。

  • メソッドは OnSchemaRefreshed 、関連付けられた DetailsView のデータ ソースのスキーマが変更されたときに呼び出されます。

  • メソッドは PreFilterProperties 、追加のプロパティを削除または追加したり、関連付けられている DetailsViewのプロパティをシャドウしたりするために使用されます。

デザイン時の編集可能な領域はコントロールでは DetailsView サポートされていないため GetEditableDesignerRegionContent 、 メソッドと SetEditableDesignerRegionContent メソッドには機能がありません。

コンストラクター

DetailsViewDesigner()

DetailsViewDesigner クラスの新しいインスタンスを初期化します。

プロパティ

ActionLists

このデザイナーのデザイナー アクション リスト コレクションを取得します。

AllowResize

デザイン時環境でコントロールのサイズを変更できるかどうかを示す値を取得します。

(継承元 ControlDesigner)
AssociatedComponents

デザイナーで管理されているコンポーネントに関連付けられているコンポーネントのコレクションを取得します。

(継承元 ComponentDesigner)
AutoFormats

[オートフォーマット] ダイアログ ボックスに表示する自動書式指定スキームのコレクションを取得します。

Behavior
古い.

デザイナーに関連付けられている DHTML 動作を取得または設定します。

(継承元 HtmlControlDesigner)
Component

デザイナーがデザインするコンポーネントを取得します。

(継承元 ComponentDesigner)
DataBindings

現在のコントロールのデータ バインディング コレクションを取得します。

(継承元 HtmlControlDesigner)
DataBindingsEnabled

関連付けられているコントロールの格納先の領域がデータ バインディングをサポートするかどうかを示す値を取得します。

(継承元 ControlDesigner)
DataMember

基底のデータ バインド コントロールのシャドウされた DataMember プロパティを取得します。

(継承元 DataBoundControlDesigner)
DataSource

関連付けられたコントロールの DataSource プロパティの値を取得または設定します。

(継承元 BaseDataBoundControlDesigner)
DataSourceDesigner

基底のデータ バインド コントロールのデータ ソースのデザイナーを取得します。

(継承元 DataBoundControlDesigner)
DataSourceID

基になる DataSourceID オブジェクトの BaseDataBoundControl プロパティの値を取得または設定します。

(継承元 BaseDataBoundControlDesigner)
DesignerState

デザイン時に関連付けられているコントロールのデータを永続化するために使用するオブジェクトを取得します。

(継承元 ControlDesigner)
DesignerView

このデザイナーのデータ ソースに関連付けられている DesignerDataSourceView オブジェクトを取得します。

(継承元 DataBoundControlDesigner)
DesignTimeElement
古い.

デザイン サーフェイスの HtmlControlDesigner オブジェクトと関連付けられているコントロールを表すデザイン時オブジェクトを取得します。

(継承元 HtmlControlDesigner)
DesignTimeElementView
古い.

コントロール デザイナーのビュー コントロール オブジェクトを取得します。

(継承元 ControlDesigner)
DesignTimeHtmlRequiresLoadComplete
古い.

デザイン ホストが読み込みを完了しないと GetDesignTimeHtml メソッドを呼び出すことができないかどうかを示す値を取得します。

(継承元 ControlDesigner)
Expressions

現在のコントロールの式バインディングをデザイン時に取得します。

(継承元 HtmlControlDesigner)
HidePropertiesInTemplateMode

コントロールがテンプレート モードのときに関連付けられているコントロールのプロパティが非表示に設定されるかどうかを示す値を取得します。

(継承元 ControlDesigner)
ID

コントロールの ID 文字列を取得または設定します。

(継承元 ControlDesigner)
InheritanceAttribute

関連付けられているコンポーネントの継承の種類を示す属性を取得します。

(継承元 ComponentDesigner)
Inherited

コンポーネントが継承されているかどうかを示す値を取得します。

(継承元 ComponentDesigner)
InTemplateMode

デザイン ホストでコントロールがテンプレート表示モードまたは編集モードのいずれかであるかどうかを示す値を取得します。 InTemplateMode プロパティは読み取り専用です。

(継承元 ControlDesigner)
IsDirty
古い.

Web サーバー コントロールが変更済みとしてマークされているかどうかを示す値を取得または設定します。

(継承元 ControlDesigner)
ParentComponent

このデザイナーの親コンポーネントを取得します。

(継承元 ComponentDesigner)
ReadOnly
古い.

コントロールのプロパティがデザイン時に読み取り専用かどうかを示す値を取得または設定します。

(継承元 ControlDesigner)
RootDesigner

関連付けられているコントロールを含む Web フォーム ページのコントロール デザイナーを取得します。

(継承元 ControlDesigner)
SampleRowCount

表示する関連付けられたコントロールのサンプル行の数を取得します。

SetTextualDefaultProperty

DetailsView コントロールを、ビジュアル デザイナーで、デザイン時に使用できるようにします。

(継承元 ComponentDesigner)
ShadowProperties

ユーザー設定値をオーバーライドするプロパティ値のコレクションを取得します。

(継承元 ComponentDesigner)
ShouldCodeSerialize
古い.

シリアル化中に、現在のデザイン ドキュメントの分離コード ファイル内でコントロールのフィールド宣言を作成するかどうかを示す値を取得または設定します。

(継承元 HtmlControlDesigner)
Tag

関連付けられているコントロールの HTML マークアップ要素を表すオブジェクトを取得します。

(継承元 ControlDesigner)
TemplateGroups

関連付けられたコントロールのフィールドについて、テンプレート グループのコレクションを取得します。

UseDataSourcePickerActionList

デザイナーのアクション リストに "データ ソースの選択" を含める必要があるかどうかを示す値を取得します。

(継承元 DataBoundControlDesigner)
UsePreviewControl

デザイン時のマークアップを生成するときに、デザイナーに関連付けられた実際のコントロールではなく、一時的なコピーをデザイナーで使用するかどうかを示す値を取得します。

Verbs

デサイナに関連付けられているコンポーネントがサポートしているデザイン時の動詞を取得します。

(継承元 ComponentDesigner)
ViewControl

デザイン時 HTML マークアップのプレビュー用に使用できる Web サーバー コントロールを取得または設定します。

(継承元 ControlDesigner)
ViewControlCreated

View コントロールがデザイン サーフェイスでの表示用に作成されているかどうかを示す値を取得または設定します。

(継承元 ControlDesigner)
Visible

コントロールがデザイン時に表示されるかどうかを示す値を取得します。

(継承元 ControlDesigner)

メソッド

ConnectToDataSource()

イベントを以前のデータ ソースから接続解除し、それを現在のデータ ソースに接続します。

(継承元 DataBoundControlDesigner)
CreateDataSource()

新しいデータ ソース コントロールを作成する標準ダイアログ ボックスを呼び出し、新しいデータ ソース コントロールの ID をデータ バインド コントロールの DataSourceID プロパティに設定します。

(継承元 DataBoundControlDesigner)
CreateErrorDesignTimeHtml(String)

指定したエラー メッセージをデザイン時に表示するための HTML マークアップを作成します。

(継承元 ControlDesigner)
CreateErrorDesignTimeHtml(String, Exception)

指定した例外エラー メッセージをデザイン時に表示するための HTML マークアップを作成します。

(継承元 ControlDesigner)
CreatePlaceHolderDesignTimeHtml()

コントロールの種類と ID を表示する単純な四角形のプレースホルダー表示を提供します。

(継承元 ControlDesigner)
CreatePlaceHolderDesignTimeHtml(String)

コントロールの種類と ID を表示する単純な四角形のプレースホルダー表示を提供します。指定された追加指示または追加情報も提供します。

(継承元 ControlDesigner)
CreateViewControl()

デザイン サーフェイスで表示または描画するために関連付けられているコントロールのコピーを返します。

(継承元 ControlDesigner)
DataBind(BaseDataBoundControl)

関連付けられたコントロールをデザイン時のデータ ソースにバインドします。

DisconnectFromDataSource()

データ ソース イベントからデータ バインド コントロールを接続解除します。

(継承元 DataBoundControlDesigner)
Dispose()

ComponentDesigner によって使用されているすべてのリソースを解放します。

(継承元 ComponentDesigner)
Dispose(Boolean)

DataBoundControlDesigner オブジェクトによって使用されているアンマネージド リソースを解放します。オプションでマネージド リソースも解放できます。

(継承元 DataBoundControlDesigner)
DoDefaultAction()

コンポーネントの既定イベントに対するメソッド シグネチャをソース コード ファイル内に作成し、コード内のその位置にカーソルを移動します。

(継承元 ComponentDesigner)
Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetBounds()

デザイン サーフェイスに表示されるコントロールの境界を表す四角形の座標を取得します。

(継承元 ControlDesigner)
GetDesignTimeDataSource()

関連付けられている DataSourceDesigner プロパティまたは DataSource プロパティからデザイン時のデータ ソースを取得します。

(継承元 DataBoundControlDesigner)
GetDesignTimeHtml()

デザイン時に関連付けられたコントロールを描画するために使用するマークアップを取得します。

GetDesignTimeHtml(DesignerRegionCollection)

関連付けられたコントロールのデザイン時の表示に使用するマークアップを取得し、デザイナー領域のコレクションに追加します。

GetEditableDesignerRegionContent(EditableDesignerRegion)

関連付けられたコントロールのデザイン時ビューの編集可能領域の内容を返します。

GetEmptyDesignTimeHtml()

コントロールが空の場合、またはデータ ソースを取得できない場合に、デザイン時にコントロールを表示するために使用するマークアップを提供します。

(継承元 BaseDataBoundControlDesigner)
GetErrorDesignTimeHtml(Exception)

エラーが発生すると、デザイン時にコントロールを表示するために使用するマークアップを提供します。

(継承元 BaseDataBoundControlDesigner)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetPersistenceContent()

コントロールの永続化できる内部 HTML マークアップをデザイン時に取得します。

(継承元 ControlDesigner)
GetPersistInnerHtml()
古い.

コントロールの永続化できる内部 HTML マークアップを取得します。

(継承元 ControlDesigner)
GetSampleDataSource()

DataSourceDesigner プロパティまたは DataSource プロパティからサンプル データを作成できない場合に、データ バインド コントロールをデザイン サーフェイスに表示するためのダミーのサンプル データを取得します。

(継承元 DataBoundControlDesigner)
GetService(Type)

デザイナーのコンポーネントのデザイン モード サイトから、指定した型のサービスの取得を試みます。

(継承元 ComponentDesigner)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
GetViewRendering()

関連付けられているコントロールの内容および領域のデザイン時マークアップを格納しているオブジェクトを取得します。

(継承元 ControlDesigner)
Initialize(IComponent)

関連付けられたコントロールをデザイナーで表示、編集、デザインできるように準備します。

InitializeExistingComponent(IDictionary)

既存のコンポーネントを再初期化します。

(継承元 ComponentDesigner)
InitializeNewComponent(IDictionary)

新たに作成されたコンポーネントを初期化します。

(継承元 ComponentDesigner)
InitializeNonDefault()
古い.
古い.

既定値以外の値に既に初期化されている、インポートされたコンポーネントの設定値を初期化します。

(継承元 ComponentDesigner)
Invalidate()

デザイン サーフェイスに表示されたコントロールの領域全体を無効化し、コントロールを再描画するようにコントロール デザイナーに通知します。

(継承元 ControlDesigner)
Invalidate(Rectangle)

デザイン サーフェイスに表示されたコントロールの指定された領域を無効化し、コントロールを再描画するようにコントロール デザイナーに通知します。

(継承元 ControlDesigner)
InvokeGetInheritanceAttribute(ComponentDesigner)

指定した InheritanceAttributeComponentDesigner を取得します。

(継承元 ComponentDesigner)
IsPropertyBound(String)
古い.

関連付けられているコントロールの指定されたプロパティがデータ バインドされているかどうかを示す値を取得します。

(継承元 ControlDesigner)
Localize(IDesignTimeResourceWriter)

提供されたリソース ライターを使用して、関連付けられているコントロールのローカライズ可能なプロパティをデザイン ホストのリソースに永続化します。

(継承元 ControlDesigner)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
OnAutoFormatApplied(DesignerAutoFormat)

定義済みのオートフォーマット スキームが関連付けられているコントロールに適用されているときに呼び出されます。

(継承元 ControlDesigner)
OnBehaviorAttached()

コントロール デザイナーが Behavior オブジェクトにアタッチされていると、呼び出されます。

(継承元 ControlDesigner)
OnBehaviorDetaching()
古い.

動作と要素の関連付けが解除されたときに呼び出されます。

(継承元 HtmlControlDesigner)
OnBindingsCollectionChanged(String)
古い.

データ バインディング コレクションが変更されると、呼び出されます。

(継承元 ControlDesigner)
OnClick(DesignerRegionMouseEventArgs)

関連付けられたコントロールのデザイン時ビューの領域がクリックされたときに呼び出されます。

OnComponentChanged(Object, ComponentChangedEventArgs)

関連付けられているコントロールが変更されたときに呼び出されます。

(継承元 ControlDesigner)
OnComponentChanging(Object, ComponentChangingEventArgs)

関連付けられているコントロールの ComponentChanging イベントを処理するメソッドを表します。

(継承元 ControlDesigner)
OnControlResize()
古い.

関連付けられている Web サーバー コントロールのサイズがデザイン時にデザイン ホストで変更された場合に呼び出されます。

(継承元 ControlDesigner)
OnDataSourceChanged(Boolean)

関連付けられた BaseDataBoundControl オブジェクトのデータ ソースが変更された場合に呼び出されます。

(継承元 BaseDataBoundControlDesigner)
OnPaint(PaintEventArgs)

CustomPaint 値が true の場合に、コントロール デザイナーが関連付けられているコントロールをデザイン サーフェイスに描画すると呼び出されます。

(継承元 ControlDesigner)
OnSchemaRefreshed()

関連付けられたコントロールのデータ ソースのスキーマが変更されたときに呼び出されます。

OnSetComponentDefaults()
古い.
古い.

コンポーネントの既定のプロパティを設定します。

(継承元 ComponentDesigner)
OnSetParent()

関連付けられたコントロールが親コントロールに結び付けられている場合に追加処理を実行する手段を提供します。

(継承元 HtmlControlDesigner)
PostFilterAttributes(IDictionary)

デザイナーが、TypeDescriptor を通じて公開する一連の属性から、項目を変更または削除できるようにします。

(継承元 ComponentDesigner)
PostFilterEvents(IDictionary)

デザイナーが、TypeDescriptor を通じて公開する一連のイベントから、項目を変更または削除できるようにします。

(継承元 ComponentDesigner)
PostFilterProperties(IDictionary)

デザイナーが、TypeDescriptor を通じて公開する一連のプロパティから、項目を変更または削除できるようにします。

(継承元 ComponentDesigner)
PreFilterAttributes(IDictionary)

デザイナーが、TypeDescriptor を通じて公開する一連の属性に項目を追加できるようにします。

(継承元 ComponentDesigner)
PreFilterEvents(IDictionary)

デザイン時にコンポーネントの TypeDescriptor オブジェクトに公開されているイベントのリストを設定します。

(継承元 HtmlControlDesigner)
PreFilterProperties(IDictionary)

Properties グリッドの表示に対してプロパティの削除または追加を実行したり、関連するコントロールのプロパティをシャドウしたりするために、デザイナーによって使用されます。

RaiseComponentChanged(MemberDescriptor, Object, Object)

コンポーネントが変更されたことを IComponentChangeService に通知します。

(継承元 ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

コンポーネントが変更されようとしていることを IComponentChangeService に通知します。

(継承元 ComponentDesigner)
RaiseResizeEvent()
古い.

OnControlResize() イベントを発生させます。

(継承元 ControlDesigner)
RegisterClone(Object, Object)

複製が作成されたコントロールの内部データを登録します。

(継承元 ControlDesigner)
SetEditableDesignerRegionContent(EditableDesignerRegion, String)

関連付けられたコントロールのデザイン時ビューの編集可能領域の内容を指定します。

SetRegionContent(EditableDesignerRegion, String)

コントロールのデザイン時ビューの編集可能領域の内容を指定します。

(継承元 ControlDesigner)
SetViewFlags(ViewFlags, Boolean)

指定したビットごとの ViewFlags 列挙体を指定したフラグ値に割り当てます。

(継承元 ControlDesigner)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
UpdateDesignTimeHtml()

GetDesignTimeHtml メソッドを呼び出して、関連付けられている Web サーバー コントロールのデザイン時 HTML マークアップを更新します。

(継承元 ControlDesigner)

明示的なインターフェイスの実装

IDataBindingSchemaProvider.CanRefreshSchema

このメンバーの詳細については、「CanRefreshSchema」をご覧ください。

(継承元 DataBoundControlDesigner)
IDataBindingSchemaProvider.RefreshSchema(Boolean)

このメンバーの詳細については、「RefreshSchema(Boolean)」をご覧ください。

(継承元 DataBoundControlDesigner)
IDataBindingSchemaProvider.Schema

このメンバーの詳細については、「Schema」をご覧ください。

(継承元 DataBoundControlDesigner)
IDataSourceProvider.GetResolvedSelectedDataSource()

このメンバーの詳細については、「GetResolvedSelectedDataSource()」をご覧ください。

(継承元 DataBoundControlDesigner)
IDataSourceProvider.GetSelectedDataSource()

このメンバーの詳細については、「GetSelectedDataSource()」をご覧ください。

(継承元 DataBoundControlDesigner)
IDesignerFilter.PostFilterAttributes(IDictionary)

このメンバーの説明については、PostFilterAttributes(IDictionary) メソッドのトピックを参照してください。

(継承元 ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary)

このメンバーの説明については、PostFilterEvents(IDictionary) メソッドのトピックを参照してください。

(継承元 ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary)

このメンバーの説明については、PostFilterProperties(IDictionary) メソッドのトピックを参照してください。

(継承元 ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary)

このメンバーの説明については、PreFilterAttributes(IDictionary) メソッドのトピックを参照してください。

(継承元 ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary)

このメンバーの説明については、PreFilterEvents(IDictionary) メソッドのトピックを参照してください。

(継承元 ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary)

このメンバーの説明については、PreFilterProperties(IDictionary) メソッドのトピックを参照してください。

(継承元 ComponentDesigner)
ITreeDesigner.Children

このメンバーの説明については、Children プロパティを参照してください。

(継承元 ComponentDesigner)
ITreeDesigner.Parent

このメンバーの説明については、Parent プロパティを参照してください。

(継承元 ComponentDesigner)

適用対象

こちらもご覧ください