Bagikan melalui


ParentControlDesigner Kelas

Definisi

Memperluas perilaku mode desain yang Control mendukung kontrol berlapis.

public ref class ParentControlDesigner : System::Windows::Forms::Design::ControlDesigner
public class ParentControlDesigner : System.Windows.Forms.Design.ControlDesigner
type ParentControlDesigner = class
    inherit ControlDesigner
Public Class ParentControlDesigner
Inherits ControlDesigner
Warisan
ParentControlDesigner
Turunan

Contoh

Contoh berikut menunjukkan cara mengimplementasikan kustom ParentControlDesigner. Contoh kode ini adalah bagian dari contoh yang lebih besar yang disediakan untuk IToolboxUser antarmuka.

#using <System.Drawing.dll>
#using <System.dll>
#using <System.Design.dll>
#using <System.Windows.Forms.dll>

using namespace System;
using namespace System::Collections;
using namespace System::ComponentModel;
using namespace System::ComponentModel::Design;
using namespace System::Diagnostics;
using namespace System::Drawing;
using namespace System::Drawing::Design;
using namespace System::Windows::Forms;
using namespace 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.
public ref class SampleRootDesigner;

// The following attribute associates the SampleRootDesigner with this example component.

[DesignerAttribute(__typeof(SampleRootDesigner),__typeof(IRootDesigner))]
public ref class RootDesignedComponent: public Control{};


// 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 ref class RootViewSampleComponent: public RootDesignedComponent{};


// 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(S"System.Windows.Forms",ToolboxItemFilterType::Custom)]
public ref class SampleRootDesigner: public ParentControlDesigner, public IRootDesigner, public IToolboxUser
{
public private:
   ref class RootDesignerView;

private:

   // This field is a custom Control type named RootDesignerView. This field references
   // a control that is shown in the design mode document window.
   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.
   array<String^>^blockedTypeNames;

public:
   SampleRootDesigner()
   {
      array<String^>^tempTypeNames = {"System.Windows.Forms.ListBox","System.Windows.Forms.GroupBox"};
      blockedTypeNames = tempTypeNames;
   }


private:

   property array<ViewTechnology>^ SupportedTechnologies 
   {

      // IRootDesigner.SupportedTechnologies is a required override for an IRootDesigner.
      // This designer provides a display using the Windows Forms view technology.
      array<ViewTechnology>^ IRootDesigner::get()
      {
         ViewTechnology temp0[] = {ViewTechnology::WindowsForms};
         return temp0;
      }

   }

   // 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::WindowsForms )
            throw gcnew ArgumentException( "An unsupported view technology was requested","Unsupported view technology." );

      
      // Creates the view object if it has not yet been initialized.
      if ( view == nullptr )
            view = gcnew 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*/ ){}


public private:

   // This control provides a Windows Forms view technology view object that 
   // provides a display for the SampleRootDesigner.

   [DesignerAttribute(__typeof(ParentControlDesigner),__typeof(IDesigner))]
   ref class RootDesignerView: public Control
   {
   private:

      // This field stores a reference to a designer.
      IDesigner^ m_designer;

   public:
      RootDesignerView( IDesigner^ designer )
      {
         
         // Perform basic control initialization.
         m_designer = designer;
         BackColor = Color::Blue;
         Font = gcnew System::Drawing::Font( Font->FontFamily->Name,24.0f );
      }


   protected:

      // This method is called to draw the view for the SampleRootDesigner.
      void OnPaint( PaintEventArgs^ pe )
      {
         Control::OnPaint( pe );
         
         // Draw the name of the component in large letters.
         pe->Graphics->DrawString( m_designer->Component->Site->Name, Font, Brushes::Yellow, ClientRectangle );
      }

   };


};
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)]
    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);
            }
        }
    }
}
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

Keterangan

ParentControlDesigner menyediakan kelas dasar untuk perancang kontrol yang dapat berisi kontrol anak. Selain metode dan fungsionalitas yang diwarisi dari ControlDesigner kelas dan ComponentDesigner , ParentControlDesigner memungkinkan kontrol anak ditambahkan ke, dihapus dari, dipilih di dalam, dan diatur dalam kontrol yang perilakunya diperluas pada waktu desain.

Anda dapat mengaitkan perancang dengan jenis menggunakan DesignerAttribute. Untuk gambaran umum menyesuaikan perilaku waktu desain, lihat Memperluas Dukungan Design-Time.

Konstruktor

ParentControlDesigner()

Menginisialisasi instans baru kelas ParentControlDesigner.

Bidang

accessibilityObj

Menentukan objek aksesibilitas untuk perancang.

(Diperoleh dari ControlDesigner)

Properti

AccessibilityObject

Mendapatkan yang AccessibleObject ditetapkan ke kontrol.

(Diperoleh dari ControlDesigner)
ActionLists

Mendapatkan daftar tindakan waktu desain yang didukung oleh komponen yang terkait dengan perancang.

(Diperoleh dari ComponentDesigner)
AllowControlLasso

Mendapatkan nilai yang menunjukkan apakah kontrol yang dipilih akan di-induk ulang.

AllowGenericDragBox

Mendapatkan nilai yang menunjukkan apakah kotak seret generik harus digambar saat menyeret item kotak alat di atas permukaan perancang.

AllowSetChildIndexOnDrop

Mendapatkan nilai yang menunjukkan apakah urutan z kontrol yang diseret harus dipertahankan saat dihilangkan pada ParentControlDesigner.

AssociatedComponents

Mendapatkan koleksi komponen yang terkait dengan komponen yang dikelola oleh perancang.

(Diperoleh dari ControlDesigner)
AutoResizeHandles

Mendapatkan atau menetapkan nilai yang menunjukkan apakah alokasi penanganan perubahan ukuran bergantung pada nilai AutoSize properti.

(Diperoleh dari ControlDesigner)
BehaviorService

BehaviorService Mendapatkan dari lingkungan desain.

(Diperoleh dari ControlDesigner)
Component

Mendapatkan komponen yang didesain desainer ini.

(Diperoleh dari ComponentDesigner)
Control

Mendapatkan kontrol yang didesain desainer.

(Diperoleh dari ControlDesigner)
DefaultControlLocation

Mendapatkan lokasi default untuk kontrol yang ditambahkan ke perancang.

DrawGrid

Mendapatkan atau menetapkan nilai yang menunjukkan apakah kisi harus digambar pada kontrol untuk perancang ini.

EnableDragRect

Mendapatkan nilai yang menunjukkan apakah persegi panjang seret digambar oleh perancang.

GridSize

Mendapatkan atau mengatur ukuran setiap kotak kisi yang digambar saat perancang berada dalam mode gambar kisi.

InheritanceAttribute

Mendapatkan perancang InheritanceAttribute .

(Diperoleh dari ControlDesigner)
Inherited

Mendapatkan nilai yang menunjukkan apakah komponen ini diwariskan.

(Diperoleh dari ComponentDesigner)
MouseDragTool

Mendapatkan nilai yang menunjukkan apakah perancang memiliki alat yang valid selama operasi seret.

ParentComponent

Mendapatkan komponen induk untuk ControlDesigner.

(Diperoleh dari ControlDesigner)
ParticipatesWithSnapLines

Mendapatkan nilai yang menunjukkan apakah akan memungkinkan perataan ControlDesigner snapline selama operasi seret.

(Diperoleh dari ControlDesigner)
SelectionRules

Mendapatkan aturan pemilihan yang menunjukkan kemampuan pergerakan komponen.

(Diperoleh dari ControlDesigner)
SetTextualDefaultProperty

Memperluas perilaku mode desain yang Control mendukung kontrol berlapis.

(Diperoleh dari ComponentDesigner)
ShadowProperties

Mendapatkan kumpulan nilai properti yang mengambil alih pengaturan pengguna.

(Diperoleh dari ComponentDesigner)
SnapLines

Mendapatkan daftar SnapLine objek yang mewakili titik perataan yang signifikan untuk kontrol ini.

SnapLines

Mendapatkan daftar SnapLine objek yang mewakili titik perataan yang signifikan untuk kontrol ini.

(Diperoleh dari ControlDesigner)
Verbs

Mendapatkan kata kerja waktu desain yang didukung oleh komponen yang terkait dengan perancang.

(Diperoleh dari ComponentDesigner)

Metode

AddPaddingSnapLines(ArrayList)

Menambahkan snapline padding.

BaseWndProc(Message)

Memproses pesan Windows.

(Diperoleh dari ControlDesigner)
CanAddComponent(IComponent)

Dipanggil ketika komponen ditambahkan ke kontainer induk.

CanBeParentedTo(IDesigner)

Menunjukkan apakah kontrol perancang ini dapat diinduki oleh kontrol perancang yang ditentukan.

(Diperoleh dari ControlDesigner)
CanParent(Control)

Menunjukkan apakah kontrol yang ditentukan dapat menjadi anak dari kontrol yang dikelola oleh perancang ini.

CanParent(ControlDesigner)

Menunjukkan apakah kontrol yang dikelola oleh perancang yang ditentukan dapat menjadi anak dari kontrol yang dikelola oleh perancang ini.

CreateTool(ToolboxItem)

Membuat komponen atau kontrol dari alat yang ditentukan dan menambahkannya ke dokumen desain saat ini.

CreateTool(ToolboxItem, Point)

Membuat komponen atau kontrol dari alat yang ditentukan dan menambahkannya ke dokumen desain saat ini di lokasi yang ditentukan.

CreateTool(ToolboxItem, Rectangle)

Membuat komponen atau kontrol dari alat yang ditentukan dan menambahkannya ke dokumen desain saat ini dalam batas persegi panjang yang ditentukan.

CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean)

Menyediakan fungsionalitas inti untuk semua CreateTool(ToolboxItem) metode.

DefWndProc(Message)

Menyediakan pemrosesan default untuk pesan Windows.

(Diperoleh dari ControlDesigner)
DisplayError(Exception)

Menampilkan informasi tentang pengecualian yang ditentukan kepada pengguna.

(Diperoleh dari ControlDesigner)
Dispose()

Merilis semua sumber daya yang ComponentDesignerdigunakan oleh .

(Diperoleh dari ComponentDesigner)
Dispose(Boolean)

Merilis sumber daya tidak terkelola yang digunakan oleh ParentControlDesigner, dan secara opsional merilis sumber daya terkelola.

DoDefaultAction()

Membuat tanda tangan metode dalam file kode sumber untuk peristiwa default pada komponen dan menavigasi kursor pengguna ke lokasi tersebut.

(Diperoleh dari ComponentDesigner)
EnableDesignMode(Control, String)

Mengaktifkan fungsionalitas waktu desain untuk kontrol anak.

(Diperoleh dari ControlDesigner)
EnableDragDrop(Boolean)

Mengaktifkan atau menonaktifkan dukungan seret dan letakkan untuk kontrol yang dirancang.

(Diperoleh dari ControlDesigner)
Equals(Object)

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetControl(Object)

Mendapatkan kontrol dari perancang komponen yang ditentukan.

GetControlGlyph(GlyphSelectionType)

Mendapatkan glyph tubuh yang mewakili batas kontrol.

GetControlGlyph(GlyphSelectionType)

Mengembalikan yang ControlBodyGlyph mewakili batas kontrol ini.

(Diperoleh dari ControlDesigner)
GetGlyphs(GlyphSelectionType)

Mendapatkan kumpulan Glyph objek yang mewakili batas pilihan dan pegangan ambil untuk kontrol standar.

GetGlyphs(GlyphSelectionType)

Mendapatkan kumpulan Glyph objek yang mewakili batas pilihan dan pegangan ambil untuk kontrol standar.

(Diperoleh dari ControlDesigner)
GetHashCode()

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetHitTest(Point)

Menunjukkan apakah klik mouse pada titik yang ditentukan harus ditangani oleh kontrol.

(Diperoleh dari ControlDesigner)
GetParentForComponent(IComponent)

Digunakan oleh turunan kelas untuk menentukan apakah kontrol tersebut mengembalikan kontrol yang dirancang atau beberapa lainnya Container saat menambahkan komponen ke dalamnya.

GetService(Type)

Upaya untuk mengambil jenis layanan yang ditentukan dari situs mode desain komponen perancang.

(Diperoleh dari ComponentDesigner)
GetType()

Mendapatkan dari instans Type saat ini.

(Diperoleh dari Object)
GetUpdatedRect(Rectangle, Rectangle, Boolean)

Memperbarui posisi persegi panjang yang ditentukan, menyesuaikannya untuk perataan kisi jika mode perataan kisi diaktifkan.

HookChildControls(Control)

Merutekan pesan dari kontrol anak dari kontrol yang ditentukan ke perancang.

(Diperoleh dari ControlDesigner)
Initialize(IComponent)

Menginisialisasi perancang dengan komponen yang ditentukan.

InitializeExistingComponent(IDictionary)

Menginisialisasi ulang komponen yang ada.

(Diperoleh dari ControlDesigner)
InitializeNewComponent(IDictionary)

Menginisialisasi komponen yang baru dibuat.

InitializeNewComponent(IDictionary)

Menginisialisasi komponen yang baru dibuat.

(Diperoleh dari ControlDesigner)
InitializeNonDefault()

Menginisialisasi properti kontrol ke nilai non-default apa pun.

(Diperoleh dari ControlDesigner)
InternalControlDesigner(Int32)

Mengembalikan perancang kontrol internal dengan indeks yang ditentukan di ControlDesigner.

(Diperoleh dari ControlDesigner)
InvokeCreateTool(ParentControlDesigner, ToolboxItem)

Membuat alat dari yang ditentukan ToolboxItem.

InvokeGetInheritanceAttribute(ComponentDesigner)

InheritanceAttribute Mendapatkan dari yang ditentukanComponentDesigner.

(Diperoleh dari ComponentDesigner)
MemberwiseClone()

Membuat salinan dangkal dari saat ini Object.

(Diperoleh dari Object)
NumberOfInternalControlDesigners()

Mengembalikan jumlah perancang kontrol internal di ControlDesigner.

(Diperoleh dari ControlDesigner)
OnContextMenu(Int32, Int32)

Menampilkan menu konteks dan memberikan kesempatan untuk melakukan pemrosesan tambahan saat menu konteks akan ditampilkan.

(Diperoleh dari ControlDesigner)
OnCreateHandle()

Memberikan kesempatan untuk melakukan pemrosesan tambahan segera setelah handel kontrol dibuat.

(Diperoleh dari ControlDesigner)
OnDragComplete(DragEventArgs)

Dipanggil untuk membersihkan operasi seret dan letakkan.

OnDragComplete(DragEventArgs)

Menerima panggilan untuk membersihkan operasi seret dan letakkan.

(Diperoleh dari ControlDesigner)
OnDragDrop(DragEventArgs)

Dipanggil saat objek seret dan letakkan dihilangkan ke tampilan perancang kontrol.

OnDragEnter(DragEventArgs)

Dipanggil saat operasi seret dan letakkan memasuki tampilan perancang kontrol.

OnDragLeave(EventArgs)

Dipanggil saat operasi seret dan letakkan meninggalkan tampilan perancang kontrol.

OnDragOver(DragEventArgs)

Dipanggil saat objek seret dan letakkan diseret melalui tampilan perancang kontrol.

OnGiveFeedback(GiveFeedbackEventArgs)

Dipanggil ketika operasi seret dan letakkan sedang berlangsung untuk memberikan isjin visual berdasarkan lokasi mouse saat operasi seret sedang berlangsung.

OnGiveFeedback(GiveFeedbackEventArgs)

Menerima panggilan ketika operasi seret dan letakkan sedang berlangsung untuk memberikan isjin visual berdasarkan lokasi mouse saat operasi seret sedang berlangsung.

(Diperoleh dari ControlDesigner)
OnMouseDragBegin(Int32, Int32)

Dipanggil sebagai respons terhadap tombol mouse kiri yang ditekan dan ditahan saat berada di atas komponen.

OnMouseDragEnd(Boolean)

Dipanggil di akhir operasi seret dan letakkan untuk menyelesaikan atau membatalkan operasi.

OnMouseDragMove(Int32, Int32)

Dipanggil untuk setiap gerakan mouse selama operasi seret dan letakkan.

OnMouseEnter()

Dipanggil ketika mouse pertama kali memasuki kontrol.

OnMouseEnter()

Menerima panggilan ketika mouse pertama kali memasuki kontrol.

(Diperoleh dari ControlDesigner)
OnMouseHover()

Dipanggil setelah mouse mengarah ke kontrol.

OnMouseHover()

Menerima panggilan setelah mouse mengarah ke kontrol.

(Diperoleh dari ControlDesigner)
OnMouseLeave()

Dipanggil ketika mouse pertama kali memasuki kontrol.

OnMouseLeave()

Menerima panggilan ketika mouse pertama kali memasuki kontrol.

(Diperoleh dari ControlDesigner)
OnPaintAdornments(PaintEventArgs)

Dipanggil ketika kontrol yang mengelola perancang telah melukis permukaannya sehingga desainer dapat melukis hiasan tambahan di atas kontrol.

OnSetComponentDefaults()
Kedaluwarsa.
Kedaluwarsa.

Dipanggil ketika perancang diinisialisasi.

(Diperoleh dari ControlDesigner)
OnSetCursor()

Memberikan kesempatan untuk mengubah kursor mouse saat ini.

PostFilterAttributes(IDictionary)

Memungkinkan perancang untuk mengubah atau menghapus item dari sekumpulan atribut yang diekspos melalui TypeDescriptor.

(Diperoleh dari ComponentDesigner)
PostFilterEvents(IDictionary)

Memungkinkan perancang untuk mengubah atau menghapus item dari serangkaian peristiwa yang diekspos melalui TypeDescriptor.

(Diperoleh dari ComponentDesigner)
PostFilterProperties(IDictionary)

Memungkinkan perancang untuk mengubah atau menghapus item dari sekumpulan properti yang diekspos melalui TypeDescriptor.

(Diperoleh dari ComponentDesigner)
PreFilterAttributes(IDictionary)

Memungkinkan perancang untuk menambahkan ke sekumpulan atribut yang diekspos melalui TypeDescriptor.

(Diperoleh dari ComponentDesigner)
PreFilterEvents(IDictionary)

Memungkinkan perancang untuk menambahkan ke serangkaian peristiwa yang diekspos melalui TypeDescriptor.

(Diperoleh dari ComponentDesigner)
PreFilterProperties(IDictionary)

Menyesuaikan kumpulan properti yang akan diekspos komponen melalui TypeDescriptor.

RaiseComponentChanged(MemberDescriptor, Object, Object)

Memberi tahu IComponentChangeService bahwa komponen ini telah diubah.

(Diperoleh dari ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

Memberi tahu IComponentChangeService bahwa komponen ini akan diubah.

(Diperoleh dari ComponentDesigner)
ToString()

Mengembalikan string yang mewakili objek saat ini.

(Diperoleh dari Object)
UnhookChildControls(Control)

Merutekan pesan untuk turunan kontrol yang ditentukan ke setiap kontrol daripada ke perancang induk.

(Diperoleh dari ControlDesigner)
WndProc(Message)

Memproses pesan Windows.

WndProc(Message)

Memproses pesan Windows dan secara opsional merutekannya ke kontrol.

(Diperoleh dari ControlDesigner)

Implementasi Antarmuka Eksplisit

IDesignerFilter.PostFilterAttributes(IDictionary)

Untuk deskripsi anggota ini, lihat PostFilterAttributes(IDictionary) metode .

(Diperoleh dari ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary)

Untuk deskripsi anggota ini, lihat PostFilterEvents(IDictionary) metode .

(Diperoleh dari ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary)

Untuk deskripsi anggota ini, lihat PostFilterProperties(IDictionary) metode .

(Diperoleh dari ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary)

Untuk deskripsi anggota ini, lihat PreFilterAttributes(IDictionary) metode .

(Diperoleh dari ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary)

Untuk deskripsi anggota ini, lihat PreFilterEvents(IDictionary) metode .

(Diperoleh dari ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary)

Untuk deskripsi anggota ini, lihat PreFilterProperties(IDictionary) metode .

(Diperoleh dari ComponentDesigner)
ITreeDesigner.Children

Untuk deskripsi anggota ini, lihat Children properti .

(Diperoleh dari ComponentDesigner)
ITreeDesigner.Parent

Untuk deskripsi anggota ini, lihat Parent properti .

(Diperoleh dari ComponentDesigner)

Berlaku untuk

Lihat juga