ParentControlDesigner Класс

Определение

Расширяет поведение режима разработки Control, поддерживающего вложенные элементы управления.

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
Наследование
ParentControlDesigner
Производный

Примеры

В следующем примере показано, как реализовать пользовательский ParentControlDesigner. Этот пример кода является частью более крупного примера, предоставленного 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

Комментарии

ParentControlDesigner предоставляет базовый класс для конструкторов элементов управления, которые могут содержать дочерние элементы управления. Помимо методов и функций, наследуемых от ControlDesigner классов и ComponentDesigner , ParentControlDesigner позволяет добавлять дочерние элементы управления в элемент управления, удалять из него, выбирать и упорядочивать в элементе управления, поведение которого расширяется во время разработки.

Конструктор можно связать с типом с помощью DesignerAttribute. Общие сведения о настройке поведения во время разработки см. в разделе Расширение поддержки Design-Time.

Конструкторы

ParentControlDesigner()

Инициализирует новый экземпляр класса ParentControlDesigner.

Поля

accessibilityObj

Задает доступный объект для конструктора.

(Унаследовано от ControlDesigner)

Свойства

AccessibilityObject

Получает объект AccessibleObject, назначенный элементу управления.

(Унаследовано от ControlDesigner)
ActionLists

Возвращает списки действий времени разработки, поддерживаемые компонентом, сопоставленным конструктору.

(Унаследовано от ComponentDesigner)
AllowControlLasso

Получает значение, указывающее, будут ли выбранные элементы управления повторно порождены.

AllowGenericDragBox

Получает значение, указывающее, должно ли быть нарисовано универсальное поле перетаскивания при перетаскивании элемента панели элементов над поверхностью конструктора.

AllowSetChildIndexOnDrop

Получает значение, указывающее, должен ли поддерживаться z-порядок перетаскиваемых элементов управления при опускании на ParentControlDesigner.

AssociatedComponents

Получает коллекцию компонентов, сопоставленных компоненту, который управляется конструктором.

(Унаследовано от ControlDesigner)
AutoResizeHandles

Получает или задает значение, указывающее, зависит ли распределение дескрипторов изменения размера от значения свойства AutoSize.

(Унаследовано от ControlDesigner)
BehaviorService

Получает BehaviorService из среды разработки.

(Унаследовано от ControlDesigner)
Component

Возвращает основной компонент, создаваемый данным конструктором.

(Унаследовано от ComponentDesigner)
Control

Получает элемент управления, создаваемый данным конструктором.

(Унаследовано от ControlDesigner)
DefaultControlLocation

Получает заданное по умолчанию положение для добавляемого элемента управления в конструкторе.

DrawGrid

Получает или задает значение, показывающее, должна ли рисоваться сетка на элементе управления для этого конструктора.

EnableDragRect

Возвращает значение, указывающее, рисуются ли конструктором перетаскиваемые прямоугольники.

GridSize

Получает или задает размеры каждого квадрата сетки, которая рисуется, если конструктор находится в режиме рисования сетки.

InheritanceAttribute

Получает InheritanceAttribute конструктора.

(Унаследовано от ControlDesigner)
Inherited

Возвращает значение, определяющее, наследуется ли этот компонент или нет.

(Унаследовано от ComponentDesigner)
MouseDragTool

Получает значение, указывающее, содержит ли конструктор допустимое средство во время операции перетаскивания.

ParentComponent

Получает родительский компонент для ControlDesigner.

(Унаследовано от ControlDesigner)
ParticipatesWithSnapLines

Получает значение, указывающее, разрешит ли ControlDesigner выравнивание по линии привязки во время операции перетаскивания.

(Унаследовано от ControlDesigner)
SelectionRules

Получает правила выбора, указывающие на возможность перемещения компонентов.

(Унаследовано от ControlDesigner)
SetTextualDefaultProperty

Расширяет поведение режима разработки Control, поддерживающего вложенные элементы управления.

(Унаследовано от ComponentDesigner)
ShadowProperties

Возвращает коллекцию значений свойств, переопределяющих параметры пользователя.

(Унаследовано от ComponentDesigner)
SnapLines

Получает список объектов SnapLine, представляющих важные точки выравнивания для этого элемента управления.

SnapLines

Получает список объектов SnapLine, представляющих важные точки выравнивания для этого элемента управления.

(Унаследовано от ControlDesigner)
Verbs

Возвращает команды в режиме конструктора, поддерживаемые компонентом, связанным с конструктором.

(Унаследовано от ComponentDesigner)

Методы

AddPaddingSnapLines(ArrayList)

Добавляет заполняющие линии привязки.

BaseWndProc(Message)

Обрабатывает сообщения Windows.

(Унаследовано от ControlDesigner)
CanAddComponent(IComponent)

Вызывается при добавлении компонента в родительский контейнер.

CanBeParentedTo(IDesigner)

Указывает, может ли этот элемент управления конструктора быть порожденным элементом управления заданного конструктора.

(Унаследовано от ControlDesigner)
CanParent(Control)

Показывает, может ли быть заданный элемент управления дочерним по отношению к элементу управления, управляемому этим конструктором.

CanParent(ControlDesigner)

Показывает, может ли данный элемент управления, который управляется заданным конструктором, быть дочерним по отношению к элементу управления, управляемому этим конструктором.

CreateTool(ToolboxItem)

Создает компонент или форму элемента управления при помощи заданного средства и добавляет их в текущий документ проекта.

CreateTool(ToolboxItem, Point)

Создает компонент или форму элемента управления при помощи заданного средства и добавляет их в текущий документ проекта в заданное местоположение.

CreateTool(ToolboxItem, Rectangle)

Создает компонент или форму элемента управления при помощи заданного средства и добавляет их в текущий документ проекта в пределах заданного прямоугольника.

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

Предоставляет основные функциональные возможности для всех методов CreateTool(ToolboxItem).

DefWndProc(Message)

Предоставляет стандартную обработку сообщений Windows.

(Унаследовано от ControlDesigner)
DisplayError(Exception)

Отображает для пользователя информацию об указанном исключении.

(Унаследовано от ControlDesigner)
Dispose()

Освобождает все ресурсы, занятые модулем ComponentDesigner.

(Унаследовано от ComponentDesigner)
Dispose(Boolean)

Освобождает неуправляемые ресурсы, используемые журналом ParentControlDesigner, и при необходимости освобождает также управляемые ресурсы.

DoDefaultAction()

Создает в файле с исходным кодом подпись метода для события по умолчанию для компонента и устанавливает курсор в позицию, где была создана эта подпись.

(Унаследовано от ComponentDesigner)
EnableDesignMode(Control, String)

Разрешает функцию разработки для дочернего элемента управления.

(Унаследовано от ControlDesigner)
EnableDragDrop(Boolean)

Разрешает или запрещает поддержку операций перетаскивания для проектируемого элемента управления.

(Унаследовано от ControlDesigner)
Equals(Object)

Определяет, равен ли указанный объект текущему объекту.

(Унаследовано от Object)
GetControl(Object)

Получает элемент управления от конструктора заданного компонента.

GetControlGlyph(GlyphSelectionType)

Получает основной глиф, представляющий границы элемента управления.

GetControlGlyph(GlyphSelectionType)

Возвращает ControlBodyGlyph, представляющий границы данного элемента управления.

(Унаследовано от ControlDesigner)
GetGlyphs(GlyphSelectionType)

Получает коллекцию объектов Glyph, представляющих границы выделения и токены захвата для стандартного элемента управления.

GetGlyphs(GlyphSelectionType)

Получает коллекцию объектов Glyph, представляющих границы выделения и токены захвата для стандартного элемента управления.

(Унаследовано от ControlDesigner)
GetHashCode()

Служит хэш-функцией по умолчанию.

(Унаследовано от Object)
GetHitTest(Point)

Указывает, должно ли нажатие клавиши мыши в определенной точке обрабатываться элементом управления.

(Унаследовано от ControlDesigner)
GetParentForComponent(IComponent)

Используется производными классами для определения, возвращается ли разрабатываемый элемент управления или какой-либо другой контейнер Container при добавлении к нему компонента.

GetService(Type)

Пытается извлечь службу заданного типа с узла режима разработки компонента конструктора.

(Унаследовано от ComponentDesigner)
GetType()

Возвращает объект Type для текущего экземпляра.

(Унаследовано от Object)
GetUpdatedRect(Rectangle, Rectangle, Boolean)

Обновляет позицию заданного прямоугольника, настраивая ее для выравнивания сетки, если режим выравнивания сетки разрешен.

HookChildControls(Control)

Рассылает сообщения от дочерних элементов управления заданного элемента управления в конструктор.

(Унаследовано от ControlDesigner)
Initialize(IComponent)

Инициализирует конструктор, используя заданный компонент.

InitializeExistingComponent(IDictionary)

Повторно инициализирует существующий компонент.

(Унаследовано от ControlDesigner)
InitializeNewComponent(IDictionary)

Инициализирует только что созданный компонент.

InitializeNewComponent(IDictionary)

Инициализирует только что созданный компонент.

(Унаследовано от ControlDesigner)
InitializeNonDefault()

Инициализирует свойства элемента управления с любыми значениями, не являющимися значениями по умолчанию.

(Унаследовано от ControlDesigner)
InternalControlDesigner(Int32)

Возвращает конструктор внутреннего элемента управления с заданным индексом в ControlDesigner.

(Унаследовано от ControlDesigner)
InvokeCreateTool(ParentControlDesigner, ToolboxItem)

Создает средство при помощи заданного элемента ToolboxItem.

InvokeGetInheritanceAttribute(ComponentDesigner)

Возвращает атрибут InheritanceAttribute заданного объекта ComponentDesigner.

(Унаследовано от ComponentDesigner)
MemberwiseClone()

Создает неполную копию текущего объекта Object.

(Унаследовано от Object)
NumberOfInternalControlDesigners()

Возвращает число конструкторов внутреннего элемента управления в ControlDesigner.

(Унаследовано от ControlDesigner)
OnContextMenu(Int32, Int32)

Показывает контекстное меню и предоставляет возможность осуществить дополнительную обработку, когда контекстное меню отображается.

(Унаследовано от ControlDesigner)
OnCreateHandle()

Предоставляет возможность осуществления дополнительной обработки немедленно после создания дескриптора элемента управления.

(Унаследовано от ControlDesigner)
OnDragComplete(DragEventArgs)

Вызывается для очистки операции перетаскивания.

OnDragComplete(DragEventArgs)

Получает вызов для очистки операции перетаскивания.

(Унаследовано от ControlDesigner)
OnDragDrop(DragEventArgs)

Вызывается, когда перетаскиваемый объект опускается на представление конструктора элемента управления.

OnDragEnter(DragEventArgs)

Вызывается, когда операция перетаскивания входит на представление конструктора элемента управления.

OnDragLeave(EventArgs)

Вызывается, когда операция перетаскивания выходит за представление конструктора элемента управления.

OnDragOver(DragEventArgs)

Вызывается, когда перетаскиваемый объект проходит над представлением конструктора элемента управления.

OnGiveFeedback(GiveFeedbackEventArgs)

Вызывается во время выполнения операции перетаскивания для обеспечения визуального слежения за положением мыши при операции перетаскивания.

OnGiveFeedback(GiveFeedbackEventArgs)

Получает вызов во время выполнения операции перетаскивания для обеспечения визуального слежения за положением мыши при операции перетаскивания.

(Унаследовано от ControlDesigner)
OnMouseDragBegin(Int32, Int32)

Вызывается в ответ на нажатие и удерживание левой кнопки мыши над компонентом.

OnMouseDragEnd(Boolean)

Вызывается в конце операции перетаскивания для завершения или отмены операции.

OnMouseDragMove(Int32, Int32)

Вызывается для каждого движения мыши во время операции перетаскивания.

OnMouseEnter()

Вызывается, когда указатель мыши в первый раз оказывается на элементе управления.

OnMouseEnter()

Получает вызов, когда указатель мыши в первый раз оказывается на элементе управления.

(Унаследовано от ControlDesigner)
OnMouseHover()

Вызывается после наведения указателя мыши на элемент управления.

OnMouseHover()

Получает вызов после наведения указателя мыши на элемент управления.

(Унаследовано от ControlDesigner)
OnMouseLeave()

Вызывается, когда указатель мыши в первый раз оказывается на элементе управления.

OnMouseLeave()

Получает вызов, когда указатель мыши в первый раз оказывается на элементе управления.

(Унаследовано от ControlDesigner)
OnPaintAdornments(PaintEventArgs)

Вызывается, когда элемент управления, управляемый конструктором, украсил свою поверхность, так что конструктор имеет возможность дополнительного украшения верхней части элемента управления.

OnSetComponentDefaults()
Устаревшие..
Устаревшие..

Вызывается при инициализации конструктора.

(Унаследовано от ControlDesigner)
OnSetCursor()

Предоставляет возможность изменить текущий курсор мыши.

PostFilterAttributes(IDictionary)

Позволяет конструктору изменять или удалять элементы из набора атрибутов, предоставленных через класс TypeDescriptor.

(Унаследовано от ComponentDesigner)
PostFilterEvents(IDictionary)

Позволяет конструктору изменять или удалять элементы из набора событий, предоставленных через класс TypeDescriptor.

(Унаследовано от ComponentDesigner)
PostFilterProperties(IDictionary)

Позволяет конструктору изменять или удалять элементы из набора свойств, предоставленных с использованием класса TypeDescriptor.

(Унаследовано от ComponentDesigner)
PreFilterAttributes(IDictionary)

Позволяет конструктору добавлять элементы к набору атрибутов, предоставленному с использованием класса TypeDescriptor.

(Унаследовано от ComponentDesigner)
PreFilterEvents(IDictionary)

Позволяет конструктору добавлять элементы к набору событий, предоставленных с использованием класса TypeDescriptor.

(Унаследовано от ComponentDesigner)
PreFilterProperties(IDictionary)

Настраивает набор свойств, представляемый компонентом через TypeDescriptor.

RaiseComponentChanged(MemberDescriptor, Object, Object)

Уведомляет службу IComponentChangeService о том, что данный компонент был изменен.

(Унаследовано от ComponentDesigner)
RaiseComponentChanging(MemberDescriptor)

Уведомляет службу IComponentChangeService о том, что компонент будет изменен.

(Унаследовано от ComponentDesigner)
ToString()

Возвращает строку, представляющую текущий объект.

(Унаследовано от Object)
UnhookChildControls(Control)

Рассылает сообщения для дочерних элементов заданного элемента управления к каждому элементу управления, а не к родительскому конструктору.

(Унаследовано от ControlDesigner)
WndProc(Message)

Обрабатывает сообщения Windows.

WndProc(Message)

Обрабатывает сообщения Windows и дополнительно пересылает их в элемент управления.

(Унаследовано от ControlDesigner)

Явные реализации интерфейса

IDesignerFilter.PostFilterAttributes(IDictionary)

Описание этого элемента содержится в методе PostFilterAttributes(IDictionary).

(Унаследовано от ComponentDesigner)
IDesignerFilter.PostFilterEvents(IDictionary)

Описание этого элемента содержится в методе PostFilterEvents(IDictionary).

(Унаследовано от ComponentDesigner)
IDesignerFilter.PostFilterProperties(IDictionary)

Описание этого элемента содержится в методе PostFilterProperties(IDictionary).

(Унаследовано от ComponentDesigner)
IDesignerFilter.PreFilterAttributes(IDictionary)

Описание этого элемента содержится в методе PreFilterAttributes(IDictionary).

(Унаследовано от ComponentDesigner)
IDesignerFilter.PreFilterEvents(IDictionary)

Описание этого элемента содержится в методе PreFilterEvents(IDictionary).

(Унаследовано от ComponentDesigner)
IDesignerFilter.PreFilterProperties(IDictionary)

Описание этого элемента содержится в методе PreFilterProperties(IDictionary).

(Унаследовано от ComponentDesigner)
ITreeDesigner.Children

Описание этого элемента см. в свойстве Children.

(Унаследовано от ComponentDesigner)
ITreeDesigner.Parent

Описание этого элемента см. в свойстве Parent.

(Унаследовано от ComponentDesigner)

Применяется к

См. также раздел