ParentControlDesigner Classe
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Estende il comportamento della modalità progettazione di un oggetto Control che supporta i controlli annidati.
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
- Ereditarietà
- Derivato
Esempio
Nell'esempio seguente viene illustrato come implementare un oggetto personalizzato ParentControlDesigner. Questo esempio di codice fa parte di un esempio più ampio fornito per l'interfaccia 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.ComponentModel;
using System.ComponentModel.Design;
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.
[Designer(typeof(SampleRootDesigner), typeof(IRootDesigner))]
public class RootDesignedComponent : 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".
[ToolboxItemFilter("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.
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.
readonly 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 => [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",
nameof(technology));
}
// Creates the view object if it has not yet been initialized.
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.
[Designer(typeof(ParentControlDesigner), typeof(IDesigner))]
internal class RootDesignerView : Control
{
// This field stores a reference to a designer.
readonly 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
Commenti
ParentControlDesigner fornisce una classe di base per le finestre di progettazione dei controlli che possono contenere controlli figlio. Oltre ai metodi e alle funzionalità ereditate dalle ControlDesigner classi e ComponentDesigner , ParentControlDesigner consente di aggiungere controlli figlio, rimuoverli, selezionati all'interno e disposti all'interno del controllo il cui comportamento si estende in fase di progettazione.
È possibile associare una finestra di progettazione a un tipo usando un oggetto DesignerAttribute.
Costruttori
| Nome | Descrizione |
|---|---|
| ParentControlDesigner() |
Inizializza una nuova istanza della classe ParentControlDesigner. |
Campi
| Nome | Descrizione |
|---|---|
| accessibilityObj |
Specifica l'oggetto accessibilità per la finestra di progettazione. (Ereditato da ControlDesigner) |
Proprietà
| Nome | Descrizione |
|---|---|
| AccessibilityObject |
Ottiene l'oggetto AccessibleObject assegnato al controllo . (Ereditato da ControlDesigner) |
| ActionLists |
Ottiene gli elenchi di azioni in fase di progettazione supportati dal componente associato alla finestra di progettazione. (Ereditato da ComponentDesigner) |
| AllowControlLasso |
Ottiene un valore che indica se i controlli selezionati verranno ri-padre. |
| AllowGenericDragBox |
Ottiene un valore che indica se una casella di trascinamento generica deve essere disegnata durante il trascinamento di un elemento della casella degli strumenti sull'area di progettazione. |
| AllowSetChildIndexOnDrop |
Ottiene un valore che indica se l'ordine z dei controlli trascinati deve essere mantenuto quando viene eliminato in un oggetto ParentControlDesigner. |
| AssociatedComponents |
Ottiene la raccolta di componenti associati al componente gestito dalla finestra di progettazione. (Ereditato da ControlDesigner) |
| AutoResizeHandles |
Ottiene o imposta un valore che indica se l'allocazione dell'handle di ridimensionamento dipende dal valore della AutoSize proprietà . (Ereditato da ControlDesigner) |
| BehaviorService |
Ottiene l'oggetto BehaviorService dall'ambiente di progettazione. (Ereditato da ControlDesigner) |
| Component |
Ottiene il componente che la finestra di progettazione sta progettando. (Ereditato da ComponentDesigner) |
| Control |
Ottiene il controllo che la finestra di progettazione sta progettando. (Ereditato da ControlDesigner) |
| DefaultControlLocation |
Ottiene il percorso predefinito per un controllo aggiunto alla finestra di progettazione. |
| DrawGrid |
Ottiene o imposta un valore che indica se una griglia deve essere disegnata sul controllo per questa finestra di progettazione. |
| EnableDragRect |
Ottiene un valore che indica se i rettangoli di trascinamento vengono disegnati dalla finestra di progettazione. |
| GridSize |
Ottiene o imposta le dimensioni di ogni quadrato della griglia disegnata quando la finestra di progettazione è in modalità di disegno griglia. |
| InheritanceAttribute |
Ottiene l'oggetto InheritanceAttribute della finestra di progettazione. (Ereditato da ControlDesigner) |
| Inherited |
Ottiene un valore che indica se il componente è ereditato. (Ereditato da ComponentDesigner) |
| MouseDragTool |
Ottiene un valore che indica se la finestra di progettazione dispone di uno strumento valido durante un'operazione di trascinamento. |
| ParentComponent |
Ottiene il componente padre per l'oggetto ControlDesigner. (Ereditato da ControlDesigner) |
| ParticipatesWithSnapLines |
Ottiene un valore che indica se l'oggetto consentirà l'allineamento ControlDesigner della linea di allineamento durante un'operazione di trascinamento. (Ereditato da ControlDesigner) |
| SelectionRules |
Ottiene le regole di selezione che indicano le funzionalità di spostamento di un componente. (Ereditato da ControlDesigner) |
| SetTextualDefaultProperty |
Estende il comportamento della modalità progettazione di un oggetto Control che supporta i controlli annidati. (Ereditato da ComponentDesigner) |
| ShadowProperties |
Ottiene una raccolta di valori di proprietà che eseguono l'override delle impostazioni utente. (Ereditato da ComponentDesigner) |
| SnapLines |
Ottiene un elenco di oggetti che rappresentano punti di SnapLine allineamento significativi per questo controllo. |
| Verbs |
Ottiene i verbi della fase di progettazione supportati dal componente associato alla finestra di progettazione. (Ereditato da ComponentDesigner) |
Metodi
| Nome | Descrizione |
|---|---|
| AddPaddingSnapLines(ArrayList) |
Aggiunge le linee di allineamento a spaziatura interna. |
| BaseWndProc(Message) |
Elabora Windows messaggi. (Ereditato da ControlDesigner) |
| CanAddComponent(IComponent) |
Chiamato quando un componente viene aggiunto al contenitore padre. |
| CanBeParentedTo(IDesigner) |
Indica se il controllo della finestra di progettazione può essere padre del controllo della finestra di progettazione specificata. (Ereditato da ControlDesigner) |
| CanParent(Control) |
Indica se il controllo specificato può essere figlio del controllo gestito da questa finestra di progettazione. |
| CanParent(ControlDesigner) |
Indica se il controllo gestito dalla finestra di progettazione specificata può essere un elemento figlio del controllo gestito da questa finestra di progettazione. |
| CreateTool(ToolboxItem, Point) |
Crea un componente o un controllo dallo strumento specificato e lo aggiunge al documento di progettazione corrente nella posizione specificata. |
| CreateTool(ToolboxItem, Rectangle) |
Crea un componente o un controllo dallo strumento specificato e lo aggiunge al documento di progettazione corrente all'interno dei limiti del rettangolo specificato. |
| CreateTool(ToolboxItem) |
Crea un componente o un controllo dallo strumento specificato e lo aggiunge al documento di progettazione corrente. |
| CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean) |
Fornisce funzionalità di base per tutti i CreateTool(ToolboxItem) metodi. |
| DefWndProc(Message) |
Fornisce l'elaborazione predefinita per i messaggi di Windows. (Ereditato da ControlDesigner) |
| DisplayError(Exception) |
Visualizza informazioni sull'eccezione specificata all'utente. (Ereditato da ControlDesigner) |
| Dispose() |
Rilascia tutte le risorse usate da ComponentDesigner. (Ereditato da ComponentDesigner) |
| Dispose(Boolean) |
Rilascia le risorse non gestite usate da ParentControlDesignere, facoltativamente, rilascia le risorse gestite. |
| DoDefaultAction() |
Crea una firma del metodo nel file del codice sorgente per l'evento predefinito nel componente e sposta il cursore dell'utente in tale posizione. (Ereditato da ComponentDesigner) |
| EnableDesignMode(Control, String) |
Abilita la funzionalità della fase di progettazione per un controllo figlio. (Ereditato da ControlDesigner) |
| EnableDragDrop(Boolean) |
Abilita o disabilita il supporto di trascinamento della selezione per il controllo progettato. (Ereditato da ControlDesigner) |
| Equals(Object) |
Determina se l'oggetto specificato è uguale all'oggetto corrente. (Ereditato da Object) |
| GetControl(Object) |
Ottiene il controllo dalla finestra di progettazione del componente specificato. |
| GetControlGlyph(GlyphSelectionType) |
Ottiene un glifo del corpo che rappresenta i limiti del controllo. |
| GetGlyphs(GlyphSelectionType) |
Ottiene un insieme di oggetti che rappresentano i bordi di Glyph selezione e i quadratini di controllo per un controllo standard. |
| GetHashCode() |
Funge da funzione hash predefinita. (Ereditato da Object) |
| GetHitTest(Point) |
Indica se un clic del mouse sul punto specificato deve essere gestito dal controllo . (Ereditato da ControlDesigner) |
| GetParentForComponent(IComponent) |
Utilizzato dalla derivazione di classi per determinare se restituisce il controllo progettato o un altro Container durante l'aggiunta di un componente. |
| GetService(Type) |
Tenta di recuperare il tipo di servizio specificato dal sito in modalità progettazione del componente della finestra di progettazione. (Ereditato da ComponentDesigner) |
| GetType() |
Ottiene il Type dell'istanza corrente. (Ereditato da Object) |
| GetUpdatedRect(Rectangle, Rectangle, Boolean) |
Aggiorna la posizione del rettangolo specificato, regolandolo per l'allineamento della griglia se è abilitata la modalità di allineamento della griglia. |
| HookChildControls(Control) |
Indirizza i messaggi dai controlli figlio del controllo specificato alla finestra di progettazione. (Ereditato da ControlDesigner) |
| Initialize(IComponent) |
Inizializza la finestra di progettazione con il componente specificato. |
| InitializeExistingComponent(IDictionary) |
Inizializza nuovamente un componente esistente. (Ereditato da ControlDesigner) |
| InitializeNewComponent(IDictionary) |
Inizializza un componente appena creato. |
| InitializeNonDefault() |
Inizializza le proprietà del controllo su qualsiasi valore non predefinito. (Ereditato da ControlDesigner) |
| InternalControlDesigner(Int32) |
Restituisce la finestra di progettazione dei controlli interni con l'indice specificato nell'oggetto ControlDesigner. (Ereditato da ControlDesigner) |
| InvokeCreateTool(ParentControlDesigner, ToolboxItem) |
Crea uno strumento dall'oggetto specificato ToolboxItem. |
| InvokeGetInheritanceAttribute(ComponentDesigner) |
Ottiene l'oggetto dell'oggetto InheritanceAttribute specificato ComponentDesigner. (Ereditato da ComponentDesigner) |
| MemberwiseClone() |
Crea una copia superficiale del Objectcorrente. (Ereditato da Object) |
| NumberOfInternalControlDesigners() |
Restituisce il numero di finestre di progettazione di controlli interni in ControlDesigner. (Ereditato da ControlDesigner) |
| OnContextMenu(Int32, Int32) |
Mostra il menu di scelta rapida e offre l'opportunità di eseguire ulteriori elaborazioni quando il menu di scelta rapida sta per essere visualizzato. (Ereditato da ControlDesigner) |
| OnCreateHandle() |
Offre l'opportunità di eseguire ulteriori elaborazioni immediatamente dopo la creazione dell'handle di controllo. (Ereditato da ControlDesigner) |
| OnDragComplete(DragEventArgs) |
Chiamato per pulire un'operazione di trascinamento della selezione. |
| OnDragDrop(DragEventArgs) |
Chiamato quando un oggetto trascinamento della selezione viene rilasciato nella visualizzazione di Progettazione controlli. |
| OnDragEnter(DragEventArgs) |
Chiamato quando un'operazione di trascinamento della selezione entra nella visualizzazione progettazione controlli. |
| OnDragLeave(EventArgs) |
Chiamato quando un'operazione di trascinamento della selezione lascia la visualizzazione progettazione controlli. |
| OnDragOver(DragEventArgs) |
Chiamato quando un oggetto trascinamento della selezione viene trascinato sulla visualizzazione di Progettazione controlli. |
| OnGiveFeedback(GiveFeedbackEventArgs) |
Chiamato quando è in corso un'operazione di trascinamento della selezione per fornire segnali visivi in base alla posizione del mouse mentre è in corso un'operazione di trascinamento. |
| OnGiveFeedback(GiveFeedbackEventArgs) |
Riceve una chiamata quando è in corso un'operazione di trascinamento della selezione per fornire segnali visivi in base alla posizione del mouse mentre è in corso un'operazione di trascinamento. (Ereditato da ControlDesigner) |
| OnMouseDragBegin(Int32, Int32) |
Chiamato in risposta al pulsante sinistro del mouse premuto e tenuto premuto sul componente. |
| OnMouseDragEnd(Boolean) |
Chiamato alla fine di un'operazione di trascinamento della selezione per completare o annullare l'operazione. |
| OnMouseDragMove(Int32, Int32) |
Chiamato per ogni movimento del mouse durante un'operazione di trascinamento della selezione. |
| OnMouseEnter() |
Viene chiamato quando il mouse entra per la prima volta nel controllo. |
| OnMouseEnter() |
Riceve una chiamata quando il mouse entra per la prima volta nel controllo. (Ereditato da ControlDesigner) |
| OnMouseHover() |
Chiamato dopo il passaggio del mouse sul controllo. |
| OnMouseHover() |
Riceve una chiamata dopo il passaggio del mouse sul controllo. (Ereditato da ControlDesigner) |
| OnMouseLeave() |
Viene chiamato quando il mouse entra per la prima volta nel controllo. |
| OnMouseLeave() |
Riceve una chiamata quando il mouse entra per la prima volta nel controllo. (Ereditato da ControlDesigner) |
| OnPaintAdornments(PaintEventArgs) |
Viene chiamato quando il controllo che la finestra di progettazione gestisce ha disegnato la relativa superficie in modo che la finestra di progettazione possa disegnare eventuali oggetti decorativi aggiuntivi sopra il controllo. |
| OnSetComponentDefaults() |
Obsoleti.
Obsoleti.
Chiamato quando la finestra di progettazione viene inizializzata. (Ereditato da ControlDesigner) |
| OnSetCursor() |
Consente di modificare il cursore corrente del mouse. |
| PostFilterAttributes(IDictionary) |
Consente a una finestra di progettazione di modificare o rimuovere elementi dal set di attributi esposti tramite un oggetto TypeDescriptor. (Ereditato da ComponentDesigner) |
| PostFilterEvents(IDictionary) |
Consente a una finestra di progettazione di modificare o rimuovere elementi dal set di eventi esposti tramite un oggetto TypeDescriptor. (Ereditato da ComponentDesigner) |
| PostFilterProperties(IDictionary) |
Consente a una finestra di progettazione di modificare o rimuovere elementi dal set di proprietà esposte tramite un oggetto TypeDescriptor. (Ereditato da ComponentDesigner) |
| PreFilterAttributes(IDictionary) |
Consente a una finestra di progettazione di aggiungere al set di attributi esposti tramite un oggetto TypeDescriptor. (Ereditato da ComponentDesigner) |
| PreFilterEvents(IDictionary) |
Consente a una finestra di progettazione di aggiungere al set di eventi esposti tramite un oggetto TypeDescriptor. (Ereditato da ComponentDesigner) |
| PreFilterProperties(IDictionary) |
Regola il set di proprietà esposte dal componente tramite un oggetto TypeDescriptor. |
| RaiseComponentChanged(MemberDescriptor, Object, Object) |
Notifica all'oggetto IComponentChangeService che questo componente è stato modificato. (Ereditato da ComponentDesigner) |
| RaiseComponentChanging(MemberDescriptor) |
Notifica all'oggetto IComponentChangeService che il componente sta per essere modificato. (Ereditato da ComponentDesigner) |
| ToString() |
Restituisce una stringa che rappresenta l'oggetto corrente. (Ereditato da Object) |
| UnhookChildControls(Control) |
Indirizza i messaggi per gli elementi figlio del controllo specificato a ogni controllo anziché a una finestra di progettazione padre. (Ereditato da ControlDesigner) |
| WndProc(Message) |
Elabora Windows messaggi. |
| WndProc(Message) |
Elabora Windows messaggi e, facoltativamente, li indirizza al controllo. (Ereditato da ControlDesigner) |