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

ParentControlDesigner クラス

入れ子にされたコントロールサポートする Controlデザイン モード動作拡張します。

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

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

カスタム ParentControlDesigner実装する方法次の例に示します。このコード例は IToolboxUser インターフェイストピック取り上げているコード例一部分です。

Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.ComponentModel.Design
Imports System.Diagnostics
Imports System.Drawing
Imports System.Drawing.Design
Imports System.Windows.Forms
Imports System.Windows.Forms.Design

' This example contains an IRootDesigner that implements the IToolboxUser
 interface.
' This example demonstrates how to enable the GetToolSupported method
 of an IToolboxUser
' designer in order to disable specific toolbox items, and how to respond
 to the 
' invocation of a ToolboxItem in the ToolPicked method of an IToolboxUser
 implementation.
' This example component class demonstrates the associated IRootDesigner
 which 
' implements the IToolboxUser interface. When designer view is invoked,
 Visual 
' Studio .NET attempts to display a design mode view for the class at
 the top 
' of a code file. This can sometimes fail when the class is one of multiple
 types 
' in a code file, and has a DesignerAttribute associating it with an
 IRootDesigner. 
' Placing a derived class at the top of the code file solves this problem.
 A 
' derived class is not typically needed for this reason, except that
 placing the 
' RootDesignedComponent class in another file is not a simple solution
 for a code 
' example that is packaged in one segment of code.

Public Class RootViewSampleComponent
    Inherits RootDesignedComponent
End Class

' The following attribute associates the SampleRootDesigner with this
 example component.
<DesignerAttribute(GetType(SampleRootDesigner), GetType(IRootDesigner))>
 _
Public Class RootDesignedComponent
    Inherits System.Windows.Forms.Control
End Class

' This example IRootDesigner implements the IToolboxUser interface and
 provides a 
' Windows Forms view technology view for its associated component using
 an internal 
' Control type.     
' The following ToolboxItemFilterAttribute enables the GetToolSupported
 method of this
' IToolboxUser designer to be queried to check for whether to enable
 or disable all 
' ToolboxItems which create any components whose type name begins with
 "System.Windows.Forms".
<ToolboxItemFilterAttribute("System.Windows.Forms",
 ToolboxItemFilterType.Custom)> _
<System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand,
 Name:="FullTrust")> _
Public Class SampleRootDesigner
    Inherits ParentControlDesigner
    Implements IRootDesigner, IToolboxUser

    ' Member field of custom type RootDesignerView, a control that is
 shown in the 
    ' design mode document window. This member is cached to reduce processing
 needed 
    ' to recreate the view control on each call to GetView().
    Private m_view As RootDesignerView

    ' This string array contains type names of components that should
 not be added to 
    ' the component managed by this designer from the Toolbox.  Any
 ToolboxItems whose 
    ' type name matches a type name in this array will be marked disabled
 according to  
    ' the signal returned by the IToolboxUser.GetToolSupported method
 of this designer.
    Private blockedTypeNames As String()
 = {"System.Windows.Forms.ListBox", "System.Windows.Forms.GroupBox"}

    ' IRootDesigner.SupportedTechnologies is a required override for
 an IRootDesigner.
    ' This designer provides a display using the Windows Forms view
 technology.
    ReadOnly Property SupportedTechnologies()
 As ViewTechnology() Implements IRootDesigner.SupportedTechnologies
        Get
            Return New ViewTechnology() {ViewTechnology.Default}
        End Get
    End Property

    ' This method returns an object that provides the view for this
 root designer. 
    Function GetView(ByVal technology As
 ViewTechnology) As Object Implements
 IRootDesigner.GetView
        ' If the design environment requests a view technology other
 than Windows 
        ' Forms, this method throws an Argument Exception.
        If technology <> ViewTechnology.Default Then
            Throw New ArgumentException("An
 unsupported view technology was requested", "Unsupported
 view technology.")
        End If

        ' Creates the view object if it has not yet been initialized.
        If m_view Is Nothing
 Then
            m_view = New RootDesignerView(Me)
        End If
        Return m_view
    End Function

    ' This method can signal whether to enable or disable the specified
    ' ToolboxItem when the component associated with this designer is
 selected.
    Function GetToolSupported(ByVal tool As
 ToolboxItem) As Boolean Implements
 IToolboxUser.GetToolSupported
        ' Search the blocked type names array for the type name of the
 tool
        ' for which support for is being tested. Return false to indicate
 the
        ' tool should be disabled when the associated component is selected.
        Dim i As Integer
        For i = 0 To blockedTypeNames.Length
 - 1
            If tool.TypeName = blockedTypeNames(i) Then
                Return False
            End If
        Next i ' Return true to indicate support
 for the tool, if the type name of the
        ' tool is not located in the blockedTypeNames string array.
        Return True
    End Function

    ' This method can perform behavior when the specified tool has been
 invoked.
    ' Invocation of a ToolboxItem typically creates a component or components,
 
    ' and adds any created components to the associated component.
    Sub ToolPicked(ByVal tool As
 ToolboxItem) Implements IToolboxUser.ToolPicked
    End Sub

    ' This control provides a Windows Forms view technology view object
 that 
    ' provides a display for the SampleRootDesigner.
    <DesignerAttribute(GetType(ParentControlDesigner), GetType(IDesigner))>
 _
    Friend Class RootDesignerView
        Inherits Control
        ' This field stores a reference to a designer.
        Private m_designer As IDesigner

        Public Sub New(ByVal
 designer As IDesigner)
            ' Performs basic control initialization.
            m_designer = designer
            BackColor = Color.Blue
            Font = New Font(Font.FontFamily.Name, 24.0F)
        End Sub

        ' This method is called to draw the view for the SampleRootDesigner.
        Protected Overrides Sub
 OnPaint(ByVal pe As PaintEventArgs)
            MyBase.OnPaint(pe)
            ' Draws the name of the component in large letters.
            pe.Graphics.DrawString(m_designer.Component.Site.Name, Font, Brushes.Yellow,
 New RectangleF(ClientRectangle.X, ClientRectangle.Y, ClientRectangle.Width,
 ClientRectangle.Height))
        End Sub
    End Class
End Class
using System;
using System.Collections;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Design;
using System.Windows.Forms;
using System.Windows.Forms.Design;

// This example contains an IRootDesigner that implements the IToolboxUser
 interface.
// This example demonstrates how to enable the GetToolSupported method
 of an IToolboxUser
// designer in order to disable specific toolbox items, and how to respond
 to the 
// invocation of a ToolboxItem in the ToolPicked method of an IToolboxUser
 implementation.
namespace IToolboxUserExample
{
    // This example component class demonstrates the associated IRootDesigner
 which 
    // implements the IToolboxUser interface. When designer view is
 invoked, Visual 
    // Studio .NET attempts to display a design mode view for the class
 at the top 
    // of a code file. This can sometimes fail when the class is one
 of multiple types 
    // in a code file, and has a DesignerAttribute associating it with
 an IRootDesigner. 
    // Placing a derived class at the top of the code file solves this
 problem. A 
    // derived class is not typically needed for this reason, except
 that placing the 
    // RootDesignedComponent class in another file is not a simple solution
 for a code 
    // example that is packaged in one segment of code.
    public class RootViewSampleComponent :
 RootDesignedComponent
    {
    }

    // The following attribute associates the SampleRootDesigner with
 this example component.
    [DesignerAttribute(typeof(SampleRootDesigner), typeof(IRootDesigner))]
    public class RootDesignedComponent : System.Windows.Forms.Control
    {
    }

    // This example IRootDesigner implements the IToolboxUser interface
 and provides a 
    // Windows Forms view technology view for its associated component
 using an internal 
    // Control type.     
    // The following ToolboxItemFilterAttribute enables the GetToolSupported
 method of this
    // IToolboxUser designer to be queried to check for whether to enable
 or disable all 
    // ToolboxItems which create any components whose type name begins
 with "System.Windows.Forms".
    [ToolboxItemFilterAttribute("System.Windows.Forms", ToolboxItemFilterType.Custom)]
    [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand,
 Name = "FullTrust")] 
    public class SampleRootDesigner : ParentControlDesigner,
 IRootDesigner, IToolboxUser
    {
        // This field is a custom Control type named RootDesignerView.
 This field references
        // a control that is shown in the design mode document window.
        private RootDesignerView view;

        // This string array contains type names of components that
 should not be added to 
        // the component managed by this designer from the Toolbox.
  Any ToolboxItems whose 
        // type name matches a type name in this array will be marked
 disabled according to  
        // the signal returned by the IToolboxUser.GetToolSupported
 method of this designer.
        private string[] blockedTypeNames =
        {
            "System.Windows.Forms.ListBox",
            "System.Windows.Forms.GroupBox"
        };

        // IRootDesigner.SupportedTechnologies is a required override
 for an IRootDesigner.
        // This designer provides a display using the Windows Forms
 view technology.
        ViewTechnology[] IRootDesigner.SupportedTechnologies 
        {
            get { return new
 ViewTechnology[] {ViewTechnology.Default}; }
        }

        // This method returns an object that provides the view for
 this root designer. 
        object IRootDesigner.GetView(ViewTechnology technology) 
        {
            // If the design environment requests a view technology
 other than Windows 
            // Forms, this method throws an Argument Exception.
            if (technology != ViewTechnology.Default)        
    
                throw new ArgumentException("An unsupported
 view technology was requested", 
                "Unsupported view technology.");            
            
            // Creates the view object if it has not yet been initialized.
            if (view == null)             
               
                view = new RootDesignerView(this);
          
  
            return view;
        }

        // This method can signal whether to enable or disable the specified
        // ToolboxItem when the component associated with this designer
 is selected.
        bool IToolboxUser.GetToolSupported(ToolboxItem tool)
        {       
            // Search the blocked type names array for the type name
 of the tool
            // for which support for is being tested. Return false to
 indicate the
            // tool should be disabled when the associated component
 is selected.
            for( int i=0; i<blockedTypeNames.Length;
 i++ )
                if( tool.TypeName == blockedTypeNames[i] )
                    return false;
            
            // Return true to indicate support for the tool, if the
 type name of the
            // tool is not located in the blockedTypeNames string array.
            return true;
        }
    
        // This method can perform behavior when the specified tool
 has been invoked.
        // Invocation of a ToolboxItem typically creates a component
 or components, 
        // and adds any created components to the associated component.
        void IToolboxUser.ToolPicked(ToolboxItem tool)
        {
        }

        // This control provides a Windows Forms view technology view
 object that 
        // provides a display for the SampleRootDesigner.
        [DesignerAttribute(typeof(ParentControlDesigner), typeof(IDesigner))]
        internal class RootDesignerView : Control
        {
            // This field stores a reference to a designer.
            private IDesigner m_designer;

            public RootDesignerView(IDesigner designer)
            {
                // Perform basic control initialization.
                m_designer = designer;
                BackColor = Color.Blue;
                Font = new Font(Font.FontFamily.Name, 24.0f);
                
            }

            // This method is called to draw the view for the SampleRootDesigner.
            protected override void OnPaint(PaintEventArgs
 pe)
            {
                base.OnPaint(pe);
                // Draw the name of the component in large letters.
                pe.Graphics.DrawString(m_designer.Component.Site.Name, Font, Brushes.Yellow,
 ClientRectangle);
            }
        }
    }
}
継承階層継承階層
System.Object
   System.ComponentModel.Design.ComponentDesigner
     System.Windows.Forms.Design.ControlDesigner
      System.Windows.Forms.Design.ParentControlDesigner
         System.Windows.Forms.Design.ScrollableControlDesigner
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ParentControlDesigner メンバ
System.Windows.Forms.Design 名前空間
ControlDesigner クラス
ComponentDesigner
IDesigner
IDesignerFilter
DesignerAttribute
その他の技術情報
デザインサポート拡張

ParentControlDesigner コンストラクタ

ParentControlDesigner クラス新しインスタンス初期化します。

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

Dim instance As New ParentControlDesigner
public ParentControlDesigner ()
public:
ParentControlDesigner ()
public ParentControlDesigner ()
public function ParentControlDesigner ()
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ParentControlDesigner クラス
ParentControlDesigner メンバ
System.Windows.Forms.Design 名前空間
ControlDesigner クラス
ComponentDesigner
IDesigner
IDesignerFilter
DesignerAttribute
その他の技術情報
デザインサポート拡張

ParentControlDesigner フィールド


プロテクト フィールドプロテクト フィールド

  名前 説明
プロテクト フィールド accessibilityObj  デザイナアクセシビリティ オブジェクト指定します。 ( ControlDesigner から継承されます。)
参照参照

関連項目

ParentControlDesigner クラス
System.Windows.Forms.Design 名前空間
ControlDesigner クラス
ComponentDesigner
IDesigner
IDesignerFilter
DesignerAttribute

その他の技術情報

デザインサポート拡張

ParentControlDesigner プロパティ


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

( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ AccessibilityObject  コントロール割り当てられた AccessibleObject を取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ ActionLists  デザイナ関連付けられているコンポーネントサポートされているデザインアクション リスト取得します。 ( ComponentDesigner から継承されます。)
パブリック プロパティ AssociatedComponents  デザイナ管理されているコンポーネント関連付けられているコンポーネントコレクション取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ AutoResizeHandles  AutoSize プロパティの値に基づいてサイズ変更ハンドル割り当てるかどうかを示す値を取得または設定します。 ( ControlDesigner から継承されます。)
パブリック プロパティ Component  デザイナデザインするコンポーネント取得します。 ( ComponentDesigner から継承されます。)
パブリック プロパティ Control  デザイナデザインするコントロール取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ ParticipatesWithSnapLines  ドラッグ操作中に ControlDesigner でスナップ線配置できるかどうかを示す値を取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ SelectionRules  コンポーネント移動機能を示す選択規則取得します。 ( ControlDesigner から継承されます。)
パブリック プロパティ SnapLines オーバーライドされます。 このコントロール有効な配置ポイントを表す SnapLine オブジェクトの一覧を取得します
パブリック プロパティ Verbs  デサイナに関連付けられているコンポーネントサポートしているデザイン時の動詞取得します。 ( ComponentDesigner から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ AllowControlLasso 選択されコントロールに親が再指定されるかどうかを示す値を取得します
プロテクト プロパティ AllowGenericDragBox ツールボックス項目をデザイナ画面ドラッグしたときに、ジェネリック ダイアログ ボックス描画するかどうかを示す値を取得します
プロテクト プロパティ AllowSetChildIndexOnDrop ドラッグしたコントロールを ParentControlDesigner にドロップしたときに、ドラッグしたコントロールz オーダー維持するかどうかを示す値を取得します
プロテクト プロパティ BehaviorService  デザイン環境から BehaviorService を取得します。 ( ControlDesigner から継承されます。)
プロテクト プロパティ DefaultControlLocation デザイナ追加されコントロール既定位置取得します
プロテクト プロパティ DrawGrid このデザイナコントロールグリッド描画するかどうかを示す値を取得または設定します
プロテクト プロパティ EnableDragRect オーバーライドされますデザイナによってドラッグ四角形描画されるかどうかを示す値を取得します
プロテクト プロパティ GridSize デザイナグリッド描画モードのときに描画されるグリッドの各四角形サイズ取得または設定します
プロテクト プロパティ InheritanceAttribute  デザイナの System.ComponentModel.InheritanceAttribute を取得します。 ( ControlDesigner から継承されます。)
プロテクト プロパティ Inherited  コンポーネント継承されているかどうかを示す値を取得します。 ( ComponentDesigner から継承されます。)
プロテクト プロパティ MouseDragTool ドラッグ操作中にデザイナ有効なツールがあるかどうかを示す値を取得します
プロテクト プロパティ ParentComponent  ControlDesigner の親コンポーネント取得します。 ( ControlDesigner から継承されます。)
プロテクト プロパティ ShadowProperties  ユーザー設定値オーバーライドするプロパティ値のコレクション取得します。 ( ComponentDesigner から継承されます。)
参照参照

関連項目

ParentControlDesigner クラス
System.Windows.Forms.Design 名前空間
ControlDesigner クラス
ComponentDesigner
IDesigner
IDesignerFilter
DesignerAttribute

その他の技術情報

デザインサポート拡張

ParentControlDesigner メソッド


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

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド CanBeParentedTo  このデザイナコントロールが、指定したデザイナコントロールを親として持つことができるかどうか示します。 ( ControlDesigner から継承されます。)
パブリック メソッド CanParent オーバーロードされます指定したコントロールデザイナによって管理されるコントロールの子にできるかどうか示します
パブリック メソッド Dispose オーバーロードされます。 ParentControlDesigner によって使用されているアンマネージ リソース解放しオプションマネージ リソース解放します。
パブリック メソッド DoDefaultAction  コンポーネント既定イベント対すメソッド シグネチャソース コード ファイル内に作成しコード内のその位置カーソル移動します。 ( ComponentDesigner から継承されます。)
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetGlyphs オーバーライドされます標準コントロール選択境界線グラブ ハンドルを表す Glyph オブジェクトコレクション取得します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド Initialize オーバーライドされますコンポーネント指定してデザイナ初期化します。
パブリック メソッド InitializeExistingComponent  既存コンポーネントを再初期化します。 ( ControlDesigner から継承されます。)
パブリック メソッド InitializeNewComponent オーバーライドされます。  
パブリック メソッド InitializeNonDefault  既定値以外の値に既に初期化されている、インポートされたコンポーネント設定値初期化します。 ( ComponentDesigner から継承されます。)
パブリック メソッド InternalControlDesigner  ControlDesigner の指定されインデックス位置内部コントロール デザイナ返します。 ( ControlDesigner から継承されます。)
パブリック メソッド NumberOfInternalControlDesigners  ControlDesigner 内の内部コントロール デザイナの数を返します。 ( ControlDesigner から継承されます。)
パブリック メソッド OnSetComponentDefaults  デザイナ初期化されるときに呼び出されます。 ( ControlDesigner から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド AddPaddingSnapLines 埋め込みスナップ線追加します
プロテクト メソッド BaseWndProc  Windows メッセージ処理します。 ( ControlDesigner から継承されます。)
プロテクト メソッド CreateTool オーバーロードされます指定したツールからコンポーネントまたはコントロール作成し、それを現在のデザイン ドキュメント追加します
プロテクト メソッド CreateToolCore すべての CreateTool メソッドコア機能提供します
プロテクト メソッド DefWndProc  Windows メッセージ既定の処理を提供します。 ( ControlDesigner から継承されます。)
プロテクト メソッド DisplayError  指定した例外に関する情報ユーザー表示します。 ( ControlDesigner から継承されます。)
プロテクト メソッド Dispose オーバーロードされますオーバーライドされますParentControlDesigner によって使用されているアンマネージ リソース解放しオプションマネージ リソース解放します。
プロテクト メソッド EnableDesignMode  コントロール対すデザイン時の機能有効にます。 ( ControlDesigner から継承されます。)
プロテクト メソッド EnableDragDrop  デザイン中のコントロールに対してドラッグ アンド ドロップサポートを有効または無効にます。 ( ControlDesigner から継承されます。)
プロテクト メソッド Finalize  ガベージ コレクションオブジェクトクリアされる前にDispose(false)呼び出してリソース解放試みます。 ( ComponentDesigner から継承されます。)
プロテクト メソッド GetControl 指定したコンポーネントデザイナからコントロール取得します
プロテクト メソッド GetControlGlyph オーバーライドされますコントロール境界を表す本体グリフ取得します
プロテクト メソッド GetHitTest  指定した点でのマウス クリックコントロールによって処理されるかどうか示します。 ( ControlDesigner から継承されます。)
プロテクト メソッド GetParentForComponent コンポーネント追加する際に、デザイン中のコントロール、または Container返されるかどうか判断するために、派生クラス使用されます。
プロテクト メソッド GetService  デザイナコンポーネントデザイン モード サイトから、指定した型のサービス取得試みます。 ( ComponentDesigner から継承されます。)
プロテクト メソッド GetUpdatedRect グリッド配置モード有効な場合は、指定した四角形位置グリッド配置合わせて更新します
プロテクト メソッド HookChildControls  指定したコントロールの子コントロールからのメッセージデザイナルーティングます。 ( ControlDesigner から継承されます。)
プロテクト メソッド InvokeCreateTool 指定した ToolboxItem からツール作成します
プロテクト メソッド InvokeGetInheritanceAttribute  指定した ComponentDesigner の InheritanceAttribute を取得します。 ( ComponentDesigner から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 ( Object から継承されます。)
プロテクト メソッド OnContextMenu  コンテキスト メニュー表示しコンテキスト メニュー表示される直前追加処理を実行する機会提供します。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnCreateHandle  制御ハンドル作成され直後に、追加処理を実行する機会提供します。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnDragComplete オーバーライドされますドラッグ アンド ドロップ操作クリーンアップするために呼び出されます。
プロテクト メソッド OnDragDrop オーバーライドされますドラッグ アンド ドロップ オブジェクトコントロールデザイナ ビュードロップされると呼び出されます。
プロテクト メソッド OnDragEnter オーバーライドされますドラッグ アンド ドロップ操作コントロールデザイナ ビューに入ると呼び出されます。
プロテクト メソッド OnDragLeave オーバーライドされますドラッグ アンド ドロップ操作コントロールデザイナ ビュー離れる呼び出されます。
プロテクト メソッド OnDragOver オーバーライドされますドラッグ アンド ドロップ オブジェクトコントロールデザイナ ビュー上にドラッグされると呼び出されます。
プロテクト メソッド OnGiveFeedback  ドラッグ アンド ドロップ操作中に呼び出し受信しドラッグ操作マウス位置基づいてビジュアル キュー提供します。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnMouseDragBegin オーバーライドされますコンポーネント上でマウス左ボタンをしばらく押したままにすると応答して呼び出されます。
プロテクト メソッド OnMouseDragEnd オーバーライドされますドラッグ アンド ドロップ操作終了時呼び出され操作完了またはキャンセルします
プロテクト メソッド OnMouseDragMove オーバーライドされますドラッグ アンド ドロップ操作中にマウス移動するたびに呼び出されます。
プロテクト メソッド OnMouseEnter  マウス最初にコントロールに入ると呼び出し受信します。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnMouseHover  マウスコントロールの上にあるときに呼び出し受信します。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnMouseLeave  マウス最初にコントロールに入ると呼び出し受信します。 ( ControlDesigner から継承されます。)
プロテクト メソッド OnPaintAdornments オーバーライドされますデザイナ管理しているコントロール表面描画したときに呼び出されデザイナコントロールの一番上追加表示要素描画できるようにします。
プロテクト メソッド OnSetCursor オーバーライドされます現在のマウス カーソル変更できるようにします。
プロテクト メソッド PostFilterAttributes  デザイナが、TypeDescriptor を通じて公開する一連の属性から、項目を変更または削除できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PostFilterEvents  デザイナが、TypeDescriptor通じて公開する一連のイベントから、項目を変更または削除できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PostFilterProperties  デザイナが、TypeDescriptor通じて公開する一連のプロパティから、項目を変更または削除できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterAttributes  デザイナが、TypeDescriptor通じて公開する一連の属性に項目を追加できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterEvents  デザイナが、TypeDescriptor通じて公開する一連のイベントに項目を追加できるようにします。 ( ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterProperties オーバーライドされますTypeDescriptor通じてコンポーネント公開するプロパティセット調整します
プロテクト メソッド RaiseComponentChanged  コンポーネント変更されたことを IComponentChangeService に通知します。 ( ComponentDesigner から継承されます。)
プロテクト メソッド RaiseComponentChanging  コンポーネント変更されようとしていることを IComponentChangeService通知します。 ( ComponentDesigner から継承されます。)
プロテクト メソッド UnhookChildControls  指定したコントロールの子対すメッセージを親デザイナではなくコントロールルーティングます。 ( ControlDesigner から継承されます。)
プロテクト メソッド WndProc  Windows メッセージ処理し必要に応じてコントロールルーティングます。 ( ControlDesigner から継承されます。)
参照参照

関連項目

ParentControlDesigner クラス
System.Windows.Forms.Design 名前空間
ControlDesigner クラス
ComponentDesigner
IDesigner
IDesignerFilter
DesignerAttribute

その他の技術情報

デザインサポート拡張

ParentControlDesigner メンバ

入れ子にされたコントロールサポートする Controlデザイン モード動作拡張します。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ParentControlDesigner ParentControlDesigner クラス新しインスタンス初期化します。
プロテクト フィールドプロテクト フィールド
  名前 説明
プロテクト フィールド accessibilityObj  デザイナアクセシビリティ オブジェクト指定します。(ControlDesigner から継承されます。)
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ AccessibilityObject  コントロール割り当てられた AccessibleObject を取得します。(ControlDesigner から継承されます。)
パブリック プロパティ ActionLists  デザイナ関連付けられているコンポーネントサポートされているデザインアクション リスト取得します。(ComponentDesigner から継承されます。)
パブリック プロパティ AssociatedComponents  デザイナ管理されているコンポーネント関連付けられているコンポーネントコレクション取得します。(ControlDesigner から継承されます。)
パブリック プロパティ AutoResizeHandles  AutoSize プロパティの値に基づいてサイズ変更ハンドル割り当てるかどうかを示す値を取得または設定します。 (ControlDesigner から継承されます。)
パブリック プロパティ Component  デザイナデザインするコンポーネント取得します。(ComponentDesigner から継承されます。)
パブリック プロパティ Control  デザイナデザインするコントロール取得します。(ControlDesigner から継承されます。)
パブリック プロパティ ParticipatesWithSnapLines  ドラッグ操作中に ControlDesignerスナップ線配置できるかどうかを示す値を取得します。(ControlDesigner から継承されます。)
パブリック プロパティ SelectionRules  コンポーネント移動機能を示す選択規則取得します。(ControlDesigner から継承されます。)
パブリック プロパティ SnapLines オーバーライドされます。 このコントロール有効な配置ポイントを表す SnapLine オブジェクトの一覧を取得します
パブリック プロパティ Verbs  デサイナに関連付けられているコンポーネントサポートしているデザイン時の動詞取得します。(ComponentDesigner から継承されます。)
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ AllowControlLasso 選択されコントロールに親が再指定されるかどうかを示す値を取得します
プロテクト プロパティ AllowGenericDragBox ツールボックス項目をデザイナ画面ドラッグしたときに、ジェネリック ダイアログ ボックス描画するかどうかを示す値を取得します
プロテクト プロパティ AllowSetChildIndexOnDrop ドラッグしたコントロールParentControlDesignerドロップしたときに、ドラッグしたコントロールz オーダー維持するかどうかを示す値を取得します
プロテクト プロパティ BehaviorService  デザイン環境から BehaviorService を取得します。(ControlDesigner から継承されます。)
プロテクト プロパティ DefaultControlLocation デザイナ追加されコントロール既定位置取得します
プロテクト プロパティ DrawGrid このデザイナコントロールグリッド描画するかどうかを示す値を取得または設定します
プロテクト プロパティ EnableDragRect オーバーライドされますデザイナによってドラッグ四角形描画されるかどうかを示す値を取得します
プロテクト プロパティ GridSize デザイナグリッド描画モードのときに描画されるグリッドの各四角形サイズ取得または設定します
プロテクト プロパティ InheritanceAttribute  デザイナSystem.ComponentModel.InheritanceAttribute取得します。(ControlDesigner から継承されます。)
プロテクト プロパティ Inherited  コンポーネント継承されているかどうかを示す値を取得します。(ComponentDesigner から継承されます。)
プロテクト プロパティ MouseDragTool ドラッグ操作中にデザイナ有効なツールがあるかどうかを示す値を取得します
プロテクト プロパティ ParentComponent  ControlDesigner の親コンポーネント取得します。(ControlDesigner から継承されます。)
プロテクト プロパティ ShadowProperties  ユーザー設定値オーバーライドするプロパティ値のコレクション取得します。(ComponentDesigner から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド CanBeParentedTo  このデザイナコントロールが、指定したデザイナコントロールを親として持つことができるかどうか示します。 (ControlDesigner から継承されます。)
パブリック メソッド CanParent オーバーロードされます指定したコントロールデザイナによって管理されるコントロールの子にできるかどうか示します
パブリック メソッド Dispose オーバーロードされますParentControlDesigner によって使用されているアンマネージ リソース解放しオプションマネージ リソース解放します。
パブリック メソッド DoDefaultAction  コンポーネント既定イベント対すメソッド シグネチャソース コード ファイル内に作成しコード内のその位置カーソル移動します。 (ComponentDesigner から継承されます。)
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetGlyphs オーバーライドされます標準コントロール選択境界線グラブ ハンドルを表す Glyph オブジェクトコレクション取得します
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド Initialize オーバーライドされますコンポーネント指定してデザイナ初期化します。
パブリック メソッド InitializeExistingComponent  既存コンポーネントを再初期化します。 (ControlDesigner から継承されます。)
パブリック メソッド InitializeNewComponent オーバーライドされます。  
パブリック メソッド InitializeNonDefault  既定値以外の値に既に初期化されている、インポートされたコンポーネント設定値初期化します。 (ComponentDesigner から継承されます。)
パブリック メソッド InternalControlDesigner  ControlDesigner の指定されインデックス位置内部コントロール デザイナ返します。 (ControlDesigner から継承されます。)
パブリック メソッド NumberOfInternalControlDesigners  ControlDesigner 内の内部コントロール デザイナの数を返します。 (ControlDesigner から継承されます。)
パブリック メソッド OnSetComponentDefaults  デザイナ初期化されるときに呼び出されます。 (ControlDesigner から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド AddPaddingSnapLines 埋め込みスナップ線追加します
プロテクト メソッド BaseWndProc  Windows メッセージ処理します。 (ControlDesigner から継承されます。)
プロテクト メソッド CreateTool オーバーロードされます指定したツールからコンポーネントまたはコントロール作成し、それを現在のデザイン ドキュメント追加します
プロテクト メソッド CreateToolCore すべての CreateTool メソッドコア機能提供します
プロテクト メソッド DefWndProc  Windows メッセージ既定の処理を提供します。 (ControlDesigner から継承されます。)
プロテクト メソッド DisplayError  指定した例外に関する情報ユーザー表示します。 (ControlDesigner から継承されます。)
プロテクト メソッド Dispose オーバーロードされますオーバーライドされますParentControlDesigner によって使用されているアンマネージ リソース解放しオプションマネージ リソース解放します。
プロテクト メソッド EnableDesignMode  コントロール対すデザイン時の機能有効にます。 (ControlDesigner から継承されます。)
プロテクト メソッド EnableDragDrop  デザイン中のコントロールに対してドラッグ アンド ドロップサポートを有効または無効にます。 (ControlDesigner から継承されます。)
プロテクト メソッド Finalize  ガベージ コレクションオブジェクトクリアされる前にDispose(false)呼び出してリソース解放試みます。 (ComponentDesigner から継承されます。)
プロテクト メソッド GetControl 指定したコンポーネントデザイナからコントロール取得します
プロテクト メソッド GetControlGlyph オーバーライドされますコントロール境界を表す本体グリフ取得します
プロテクト メソッド GetHitTest  指定した点でのマウス クリックコントロールによって処理されるかどうか示します。 (ControlDesigner から継承されます。)
プロテクト メソッド GetParentForComponent コンポーネント追加する際に、デザイン中のコントロール、または Container返されるかどうか判断するために、派生クラス使用されます。
プロテクト メソッド GetService  デザイナコンポーネントデザイン モード サイトから、指定した型のサービス取得試みます。 (ComponentDesigner から継承されます。)
プロテクト メソッド GetUpdatedRect グリッド配置モード有効な場合は、指定した四角形位置グリッド配置合わせて更新します
プロテクト メソッド HookChildControls  指定したコントロールの子コントロールからのメッセージデザイナルーティングます。 (ControlDesigner から継承されます。)
プロテクト メソッド InvokeCreateTool 指定した ToolboxItem からツール作成します
プロテクト メソッド InvokeGetInheritanceAttribute  指定した ComponentDesigner の InheritanceAttribute を取得します。 (ComponentDesigner から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 (Object から継承されます。)
プロテクト メソッド OnContextMenu  コンテキスト メニュー表示しコンテキスト メニュー表示される直前追加処理を実行する機会提供します。 (ControlDesigner から継承されます。)
プロテクト メソッド OnCreateHandle  制御ハンドル作成され直後に、追加処理を実行する機会提供します。 (ControlDesigner から継承されます。)
プロテクト メソッド OnDragComplete オーバーライドされますドラッグ アンド ドロップ操作クリーンアップするために呼び出されます。
プロテクト メソッド OnDragDrop オーバーライドされますドラッグ アンド ドロップ オブジェクトコントロールデザイナ ビュードロップされると呼び出されます。
プロテクト メソッド OnDragEnter オーバーライドされますドラッグ アンド ドロップ操作コントロールデザイナ ビューに入ると呼び出されます。
プロテクト メソッド OnDragLeave オーバーライドされますドラッグ アンド ドロップ操作コントロールデザイナ ビュー離れる呼び出されます。
プロテクト メソッド OnDragOver オーバーライドされますドラッグ アンド ドロップ オブジェクトコントロールデザイナ ビュー上にドラッグされると呼び出されます。
プロテクト メソッド OnGiveFeedback  ドラッグ アンド ドロップ操作中に呼び出し受信しドラッグ操作マウス位置基づいてビジュアル キュー提供します。 (ControlDesigner から継承されます。)
プロテクト メソッド OnMouseDragBegin オーバーライドされますコンポーネント上でマウス左ボタンをしばらく押したままにすると応答して呼び出されます。
プロテクト メソッド OnMouseDragEnd オーバーライドされますドラッグ アンド ドロップ操作終了時呼び出され操作完了またはキャンセルします
プロテクト メソッド OnMouseDragMove オーバーライドされますドラッグ アンド ドロップ操作中にマウス移動するたびに呼び出されます。
プロテクト メソッド OnMouseEnter  マウス最初にコントロールに入ると呼び出し受信します。 (ControlDesigner から継承されます。)
プロテクト メソッド OnMouseHover  マウスコントロールの上にあるときに呼び出し受信します。 (ControlDesigner から継承されます。)
プロテクト メソッド OnMouseLeave  マウス最初にコントロールに入ると呼び出し受信します。 (ControlDesigner から継承されます。)
プロテクト メソッド OnPaintAdornments オーバーライドされますデザイナ管理しているコントロール表面描画したときに呼び出されデザイナコントロールの一番上追加表示要素描画できるようにします。
プロテクト メソッド OnSetCursor オーバーライドされます現在のマウス カーソル変更できるようにします。
プロテクト メソッド PostFilterAttributes  デザイナが、TypeDescriptor を通じて公開する一連の属性から、項目を変更または削除できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PostFilterEvents  デザイナが、TypeDescriptor通じて公開する一連のイベントから、項目を変更または削除できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PostFilterProperties  デザイナが、TypeDescriptor通じて公開する一連のプロパティから、項目を変更または削除できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterAttributes  デザイナが、TypeDescriptor通じて公開する一連の属性に項目を追加できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterEvents  デザイナが、TypeDescriptor通じて公開する一連のイベントに項目を追加できるようにします。 (ComponentDesigner から継承されます。)
プロテクト メソッド PreFilterProperties オーバーライドされますTypeDescriptor通じてコンポーネント公開するプロパティセット調整します
プロテクト メソッド RaiseComponentChanged  コンポーネント変更されたことを IComponentChangeService に通知します。 (ComponentDesigner から継承されます。)
プロテクト メソッド RaiseComponentChanging  コンポーネント変更されようとしていることを IComponentChangeService通知します。 (ComponentDesigner から継承されます。)
プロテクト メソッド UnhookChildControls  指定したコントロールの子対すメッセージを親デザイナではなくコントロールルーティングます。 (ControlDesigner から継承されます。)
プロテクト メソッド WndProc  Windows メッセージ処理し必要に応じてコントロールルーティングます。 (ControlDesigner から継承されます。)
参照参照

関連項目

ParentControlDesigner クラス
System.Windows.Forms.Design 名前空間
ControlDesigner クラス
ComponentDesigner
IDesigner
IDesignerFilter
DesignerAttribute

その他の技術情報

デザインサポート拡張



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

辞書ショートカット

すべての辞書の索引

「ParentControlDesigner」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS