ParentControlDesigner Klasa

Definicja

Rozszerza zachowanie trybu projektowania obiektu obsługującego Control zagnieżdżone kontrolki.

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
Dziedziczenie
ParentControlDesigner
Pochodne

Przykłady

W poniższym przykładzie pokazano, jak zaimplementować niestandardowy element ParentControlDesigner. Ten przykład kodu jest częścią większego przykładu udostępnionego dla interfejsu IToolboxUser .

#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

Uwagi

ParentControlDesigner Udostępnia klasę bazową dla projektantów kontrolek, które mogą zawierać kontrolki podrzędne. Oprócz metod i funkcji dziedziczonych po ControlDesigner klasach ParentControlDesigner i ComponentDesigner umożliwia dodawanie, usuwanie, usuwanie, zaznaczanie i rozmieszczanie kontrolek podrzędnych w obrębie kontrolki, których zachowanie rozciąga się w czasie projektowania.

Projektanta można skojarzyć z typem przy użyciu elementu DesignerAttribute. Aby zapoznać się z omówieniem dostosowywania zachowania czasu projektowania, zobacz Rozszerzanie obsługi Design-Time.

Konstruktory

ParentControlDesigner()

Inicjuje nowe wystąpienie klasy ParentControlDesigner.

Pola

accessibilityObj

Określa obiekt ułatwień dostępu dla projektanta.

(Odziedziczone po ControlDesigner)

Właściwości

AccessibilityObject

AccessibleObject Pobiera element przypisany do kontrolki.

(Odziedziczone po ControlDesigner)
ActionLists

Pobiera listę akcji czasu projektowania obsługiwaną przez składnik skojarzony z projektantem.

(Odziedziczone po ComponentDesigner)
AllowControlLasso

Pobiera wartość wskazującą, czy wybrane kontrolki zostaną ponownie nadrzędne.

AllowGenericDragBox

Pobiera wartość wskazującą, czy ogólne pole przeciągania powinno być rysowane podczas przeciągania elementu przybornika na powierzchni projektanta.

AllowSetChildIndexOnDrop

Pobiera wartość wskazującą, czy kolejność z przeciągniętych kontrolek powinna być zachowywana po upuszczeniu elementu na ParentControlDesigner.

AssociatedComponents

Pobiera kolekcję składników skojarzonych ze składnikiem zarządzanym przez projektanta.

(Odziedziczone po ControlDesigner)
AutoResizeHandles

Pobiera lub ustawia wartość wskazującą, czy alokacja uchwytu zmiany rozmiaru AutoSize zależy od wartości właściwości.

(Odziedziczone po ControlDesigner)
BehaviorService

Pobiera element BehaviorService ze środowiska projektowego.

(Odziedziczone po ControlDesigner)
Component

Pobiera składnik, który projektuje ten projektant.

(Odziedziczone po ComponentDesigner)
Control

Pobiera kontrolę, którą projektuje projektant.

(Odziedziczone po ControlDesigner)
DefaultControlLocation

Pobiera domyślną lokalizację kontrolki dodanej do projektanta.

DrawGrid

Pobiera lub ustawia wartość wskazującą, czy siatka powinna być rysowana w kontrolce dla tego projektanta.

EnableDragRect

Pobiera wartość wskazującą, czy przeciąganie prostokątów jest rysowane przez projektanta.

GridSize

Pobiera lub ustawia rozmiar każdego kwadratu siatki, który jest rysowany, gdy projektant jest w trybie rysowania siatki.

InheritanceAttribute

Pobiera element InheritanceAttribute projektanta.

(Odziedziczone po ControlDesigner)
Inherited

Pobiera wartość wskazującą, czy ten składnik jest dziedziczony.

(Odziedziczone po ComponentDesigner)
MouseDragTool

Pobiera wartość wskazującą, czy projektant ma prawidłowe narzędzie podczas operacji przeciągania.

ParentComponent

Pobiera składnik nadrzędny dla elementu ControlDesigner.

(Odziedziczone po ControlDesigner)
ParticipatesWithSnapLines

Pobiera wartość wskazującą, czy ControlDesigner ustawienie umożliwia wyrównanie linii przyciągania podczas operacji przeciągania.

(Odziedziczone po ControlDesigner)
SelectionRules

Pobiera reguły wyboru, które wskazują możliwości przenoszenia składnika.

(Odziedziczone po ControlDesigner)
ShadowProperties

Pobiera kolekcję wartości właściwości, które zastępują ustawienia użytkownika.

(Odziedziczone po ComponentDesigner)
SnapLines

Pobiera listę SnapLine obiektów reprezentujących istotne punkty wyrównania dla tej kontrolki.

SnapLines

Pobiera listę SnapLine obiektów reprezentujących znaczące punkty wyrównania dla tej kontrolki.

(Odziedziczone po ControlDesigner)
Verbs

Pobiera czas projektowania czasowniki obsługiwane przez składnik skojarzony z projektantem.

(Odziedziczone po ComponentDesigner)

Metody

AddPaddingSnapLines(ArrayList)

Dodaje linie przyciągania dopełnienia.

BaseWndProc(Message)

Przetwarza wiadomości systemu Windows.

(Odziedziczone po ControlDesigner)
CanAddComponent(IComponent)

Wywoływana po dodaniu składnika do kontenera nadrzędnego.

CanBeParentedTo(IDesigner)

Wskazuje, czy kontrolka tego projektanta może być nadrzędna przez kontrolkę określonego projektanta.

(Odziedziczone po ControlDesigner)
CanParent(Control)

Wskazuje, czy określona kontrolka może być elementem podrzędnym kontrolki zarządzanej przez tego projektanta.

CanParent(ControlDesigner)

Wskazuje, czy kontrolka zarządzana przez określonego projektanta może być elementem podrzędnym kontrolki zarządzanej przez tego projektanta.

CreateTool(ToolboxItem)

Tworzy składnik lub kontrolkę z określonego narzędzia i dodaje go do bieżącego dokumentu projektu.

CreateTool(ToolboxItem, Point)

Tworzy składnik lub kontrolkę z określonego narzędzia i dodaje go do bieżącego dokumentu projektowego w określonej lokalizacji.

CreateTool(ToolboxItem, Rectangle)

Tworzy składnik lub kontrolkę z określonego narzędzia i dodaje go do bieżącego dokumentu projektowego w granicach określonego prostokąta.

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

Zapewnia podstawowe funkcje dla wszystkich CreateTool(ToolboxItem) metod.

DefWndProc(Message)

Zapewnia domyślne przetwarzanie komunikatów Windows.

(Odziedziczone po ControlDesigner)
DisplayError(Exception)

Wyświetla informacje o określonym wyjątku dla użytkownika.

(Odziedziczone po ControlDesigner)
Dispose()

Zwalnia wszelkie zasoby używane przez element ComponentDesigner.

(Odziedziczone po ComponentDesigner)
Dispose(Boolean)

Zwalnia niezarządzane zasoby używane przez ParentControlDesignerprogram i opcjonalnie zwalnia zarządzane zasoby.

DoDefaultAction()

Tworzy podpis metody w pliku kodu źródłowego dla zdarzenia domyślnego w składniku i przechodzi kursor użytkownika do tej lokalizacji.

(Odziedziczone po ComponentDesigner)
EnableDesignMode(Control, String)

Włącza funkcję czasu projektowania dla kontrolki podrzędnej.

(Odziedziczone po ControlDesigner)
EnableDragDrop(Boolean)

Włącza lub wyłącza obsługę przeciągania i upuszczania dla projektowanych kontrolek.

(Odziedziczone po ControlDesigner)
Equals(Object)

Określa, czy dany obiekt jest taki sam, jak bieżący obiekt.

(Odziedziczone po Object)
GetControl(Object)

Pobiera kontrolkę od projektanta określonego składnika.

GetControlGlyph(GlyphSelectionType)

Pobiera treść glif, która reprezentuje granice kontrolki.

GetControlGlyph(GlyphSelectionType)

Zwraca wartość reprezentującą ControlBodyGlyph granice tej kontrolki.

(Odziedziczone po ControlDesigner)
GetGlyphs(GlyphSelectionType)

Pobiera kolekcję Glyph obiektów reprezentujących obramowania zaznaczenia i chwyta uchwyty dla standardowej kontrolki.

GetGlyphs(GlyphSelectionType)

Pobiera kolekcję Glyph obiektów reprezentujących obramowania zaznaczenia i chwyta uchwyty dla standardowej kontrolki.

(Odziedziczone po ControlDesigner)
GetHashCode()

Służy jako domyślna funkcja skrótu.

(Odziedziczone po Object)
GetHitTest(Point)

Wskazuje, czy kliknięcie myszy w określonym punkcie powinno być obsługiwane przez kontrolkę.

(Odziedziczone po ControlDesigner)
GetParentForComponent(IComponent)

Używane przez klasy pochodne w celu określenia, czy zwraca ona kontrolkę zaprojektowaną, czy inną Container podczas dodawania do niego składnika.

GetService(Type)

Próbuje pobrać określony typ usługi z witryny trybu projektowania składnika projektanta.

(Odziedziczone po ComponentDesigner)
GetType()

Type Pobiera wartość bieżącego wystąpienia.

(Odziedziczone po Object)
GetUpdatedRect(Rectangle, Rectangle, Boolean)

Aktualizuje położenie określonego prostokąta, dostosowując go do wyrównania siatki, jeśli jest włączony tryb wyrównania siatki.

HookChildControls(Control)

Kieruje komunikaty z kontrolek podrzędnych określonej kontrolki do projektanta.

(Odziedziczone po ControlDesigner)
Initialize(IComponent)

Inicjuje projektanta za pomocą określonego składnika.

InitializeExistingComponent(IDictionary)

Ponownie inicjuje istniejący składnik.

(Odziedziczone po ControlDesigner)
InitializeNewComponent(IDictionary)

Inicjuje nowo utworzony składnik.

InitializeNewComponent(IDictionary)

Inicjuje nowo utworzony składnik.

(Odziedziczone po ControlDesigner)
InitializeNonDefault()

Inicjuje właściwości kontrolki do wszystkich wartości innych niż domyślne.

(Odziedziczone po ControlDesigner)
InternalControlDesigner(Int32)

Zwraca wewnętrzny projektant kontrolek z określonym indeksem w obiekcie ControlDesigner.

(Odziedziczone po ControlDesigner)
InvokeCreateTool(ParentControlDesigner, ToolboxItem)

Tworzy narzędzie na podstawie określonego ToolboxItemelementu .

InvokeGetInheritanceAttribute(ComponentDesigner)

Pobiera element InheritanceAttribute określonego ComponentDesignerelementu .

(Odziedziczone po ComponentDesigner)
MemberwiseClone()

Tworzy płytkią kopię bieżącego Objectelementu .

(Odziedziczone po Object)
NumberOfInternalControlDesigners()

Zwraca liczbę wewnętrznych projektantów kontroli w elemecie ControlDesigner.

(Odziedziczone po ControlDesigner)
OnContextMenu(Int32, Int32)

Pokazuje menu kontekstowe i zapewnia możliwość wykonania dodatkowego przetwarzania, gdy menu kontekstowe ma być wyświetlane.

(Odziedziczone po ControlDesigner)
OnCreateHandle()

Zapewnia możliwość wykonania dodatkowego przetwarzania bezpośrednio po utworzeniu uchwytu sterującego.

(Odziedziczone po ControlDesigner)
OnDragComplete(DragEventArgs)

Wywoływane w celu oczyszczenia operacji przeciągania i upuszczania.

OnDragComplete(DragEventArgs)

Odbiera wywołanie czyszczenia operacji przeciągania i upuszczania.

(Odziedziczone po ControlDesigner)
OnDragDrop(DragEventArgs)

Wywoływana, gdy obiekt przeciągania i upuszczania jest upuszczany w widoku projektanta sterowania.

OnDragEnter(DragEventArgs)

Wywoływana, gdy operacja przeciągania i upuszczania wchodzi w widok projektanta kontrolki.

OnDragLeave(EventArgs)

Wywoływana, gdy operacja przeciągania i upuszczania opuszcza widok projektanta sterowania.

OnDragOver(DragEventArgs)

Wywoływane, gdy obiekt przeciągania i upuszczania jest przeciągany nad widokiem projektanta kontrolki.

OnGiveFeedback(GiveFeedbackEventArgs)

Wywoływana, gdy trwa operacja przeciągania i upuszczania w celu zapewnienia wskazówek wizualnych na podstawie lokalizacji myszy, gdy operacja przeciągania jest w toku.

OnGiveFeedback(GiveFeedbackEventArgs)

Odbiera wywołanie, gdy operacja przeciągania i upuszczania jest w toku w celu zapewnienia wskazówek wizualnych na podstawie lokalizacji myszy, gdy operacja przeciągania jest w toku.

(Odziedziczone po ControlDesigner)
OnMouseDragBegin(Int32, Int32)

Wywołana w odpowiedzi na naciśnięcie i zatrzymanie przycisku myszy po lewej stronie przez składnik.

OnMouseDragEnd(Boolean)

Wywoływana na końcu operacji przeciągania i upuszczania w celu ukończenia lub anulowania operacji.

OnMouseDragMove(Int32, Int32)

Wywołana dla każdego ruchu myszy podczas operacji przeciągania i upuszczania.

OnMouseEnter()

Wywoływana po pierwszym wejściu myszy do kontrolki.

OnMouseEnter()

Odbiera wywołanie po pierwszym wejściu myszy do kontrolki.

(Odziedziczone po ControlDesigner)
OnMouseHover()

Wywołana po umieszczeniu kursora myszy nad kontrolką.

OnMouseHover()

Odbiera wywołanie po umieszczeniu kursora myszy nad kontrolką.

(Odziedziczone po ControlDesigner)
OnMouseLeave()

Wywoływana po pierwszym wejściu myszy do kontrolki.

OnMouseLeave()

Odbiera wywołanie po pierwszym wejściu myszy do kontrolki.

(Odziedziczone po ControlDesigner)
OnPaintAdornments(PaintEventArgs)

Wywoływana, gdy kontrolka, którą zarządza projektant, namalowała swoją powierzchnię, aby projektant mógł malować wszelkie dodatkowe ozdoby na wierzchu kontrolki.

OnSetComponentDefaults()
Nieaktualne.
Nieaktualne.

Wywoływane po zainicjowaniu projektanta.

(Odziedziczone po ControlDesigner)
OnSetCursor()

Umożliwia zmianę bieżącego kursora myszy.

PostFilterAttributes(IDictionary)

Umożliwia projektantowi zmianę lub usunięcie elementów z zestawu atrybutów, które uwidacznia za pośrednictwem elementu TypeDescriptor.

(Odziedziczone po ComponentDesigner)
PostFilterEvents(IDictionary)

Umożliwia projektantowi zmianę lub usunięcie elementów z zestawu zdarzeń udostępnianych za pośrednictwem elementu TypeDescriptor.

(Odziedziczone po ComponentDesigner)
PostFilterProperties(IDictionary)

Umożliwia projektantowi zmianę lub usunięcie elementów z zestawu właściwości, które uwidacznia za pośrednictwem elementu TypeDescriptor.

(Odziedziczone po ComponentDesigner)
PreFilterAttributes(IDictionary)

Umożliwia projektantowi dodanie do zestawu atrybutów, które uwidacznia za pośrednictwem elementu TypeDescriptor.

(Odziedziczone po ComponentDesigner)
PreFilterEvents(IDictionary)

Umożliwia projektantowi dodanie do zestawu zdarzeń, które uwidacznia za pośrednictwem elementu TypeDescriptor.

(Odziedziczone po ComponentDesigner)
PreFilterProperties(IDictionary)

Dostosowuje zestaw właściwości, które składnik uwidacznia za pomocą elementu TypeDescriptor.

RaiseComponentChanged(MemberDescriptor, Object, Object)

Powiadamia o IComponentChangeService zmianie tego składnika.

(Odziedziczone po ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

Powiadamia o tym IComponentChangeService , że ten składnik ma zostać zmieniony.

(Odziedziczone po ComponentDesigner)
ToString()

Zwraca ciąg reprezentujący bieżący obiekt.

(Odziedziczone po Object)
UnhookChildControls(Control)

Kieruje komunikaty dla elementów podrzędnych określonej kontrolki do każdej kontrolki, a nie do projektanta nadrzędnego.

(Odziedziczone po ControlDesigner)
WndProc(Message)

Przetwarza wiadomości systemu Windows.

WndProc(Message)

Przetwarza Windows komunikaty i opcjonalnie kieruje je do kontrolki.

(Odziedziczone po ControlDesigner)

Jawne implementacje interfejsu

IDesignerFilter.PostFilterAttributes(IDictionary)

Aby uzyskać opis tego elementu członkowskiego, zobacz metodę PostFilterAttributes(IDictionary) .

(Odziedziczone po ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary)

Aby uzyskać opis tego elementu członkowskiego, zobacz metodę PostFilterEvents(IDictionary) .

(Odziedziczone po ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary)

Aby uzyskać opis tego elementu członkowskiego, zobacz metodę PostFilterProperties(IDictionary) .

(Odziedziczone po ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary)

Aby uzyskać opis tego elementu członkowskiego, zobacz metodę PreFilterAttributes(IDictionary) .

(Odziedziczone po ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary)

Aby uzyskać opis tego elementu członkowskiego, zobacz metodę PreFilterEvents(IDictionary) .

(Odziedziczone po ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary)

Aby uzyskać opis tego elementu członkowskiego, zobacz metodę PreFilterProperties(IDictionary) .

(Odziedziczone po ComponentDesigner)
ITreeDesigner.Children

Aby uzyskać opis tego elementu członkowskiego, zobacz Children właściwość .

(Odziedziczone po ComponentDesigner)
ITreeDesigner.Parent

Aby uzyskać opis tego elementu członkowskiego, zobacz Parent właściwość .

(Odziedziczone po ComponentDesigner)

Dotyczy

Zobacz też