ParentControlDesigner Klass
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Utökar designlägets beteende för en Control som stöder kapslade kontroller.
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
- Arv
- Härledda
Exempel
I följande exempel visas hur du implementerar en anpassad ParentControlDesigner. Det här kodexemplet är en del av ett större exempel som tillhandahålls för IToolboxUser gränssnittet.
#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
Kommentarer
ParentControlDesigner tillhandahåller en basklass för designers av kontroller som kan innehålla underordnade kontroller. Förutom de metoder och funktioner som ärvts från ControlDesigner klasserna ComponentDesigner och ParentControlDesigner kan underordnade kontroller läggas till, tas bort från, väljas inom och ordnas inom kontrollen vars beteende den utökas vid designtillfället.
Du kan associera en designer med en typ med hjälp av en DesignerAttribute. En översikt över hur du anpassar designtidsbeteendet finns i Utöka Design-Time Support.
Konstruktorer
| Name | Description |
|---|---|
| ParentControlDesigner() |
Initierar en ny instans av ParentControlDesigner klassen. |
Fält
| Name | Description |
|---|---|
| accessibilityObj |
Anger hjälpmedelsobjektet för designern. (Ärvd från ControlDesigner) |
Egenskaper
| Name | Description |
|---|---|
| AccessibilityObject |
Hämtar den AccessibleObject tilldelade kontrollen. (Ärvd från ControlDesigner) |
| ActionLists |
Hämtar de åtgärdslistor för designtid som stöds av komponenten som är associerad med designern. (Ärvd från ComponentDesigner) |
| AllowControlLasso |
Hämtar ett värde som anger om valda kontroller ska överordnas igen. |
| AllowGenericDragBox |
Hämtar ett värde som anger om en allmän dragruta ska ritas när du drar ett verktygslådeobjekt över designerns yta. |
| AllowSetChildIndexOnDrop |
Hämtar ett värde som anger om z-ordningen för dragna kontroller ska behållas när den tas bort på en ParentControlDesigner. |
| AssociatedComponents |
Hämtar den samling komponenter som är associerade med komponenten som hanteras av designern. (Ärvd från ControlDesigner) |
| AutoResizeHandles |
Hämtar eller anger ett värde som anger om storleksändringshandtagsallokering beror på värdet för AutoSize egenskapen. (Ärvd från ControlDesigner) |
| BehaviorService |
BehaviorService Hämtar från designmiljön. (Ärvd från ControlDesigner) |
| Component |
Hämtar komponenten som designern designar. (Ärvd från ComponentDesigner) |
| Control |
Hämtar kontrollen som designern utformar. (Ärvd från ControlDesigner) |
| DefaultControlLocation |
Hämtar standardplatsen för en kontroll som läggs till i designern. |
| DrawGrid |
Hämtar eller anger ett värde som anger om ett rutnät ska ritas på kontrollen för den här designern. |
| EnableDragRect |
Hämtar ett värde som anger om dra rektanglar ritas av designern. |
| GridSize |
Hämtar eller anger storleken på varje kvadrat i rutnätet som ritas när designern är i rutnätsdragningsläge. |
| InheritanceAttribute |
InheritanceAttribute Hämtar designerns. (Ärvd från ControlDesigner) |
| Inherited |
Hämtar ett värde som anger om den här komponenten ärvs. (Ärvd från ComponentDesigner) |
| MouseDragTool |
Hämtar ett värde som anger om designern har ett giltigt verktyg under en dragåtgärd. |
| ParentComponent |
Hämtar den överordnade komponenten ControlDesignerför . (Ärvd från ControlDesigner) |
| ParticipatesWithSnapLines |
Hämtar ett värde som anger om ControlDesigner kommer att tillåta fästlinjejustering under en dragåtgärd. (Ärvd från ControlDesigner) |
| SelectionRules |
Hämtar de urvalsregler som anger förflyttningsfunktionerna för en komponent. (Ärvd från ControlDesigner) |
| SetTextualDefaultProperty |
Utökar designlägets beteende för en Control som stöder kapslade kontroller. (Ärvd från ComponentDesigner) |
| ShadowProperties |
Hämtar en samling egenskapsvärden som åsidosätter användarinställningar. (Ärvd från ComponentDesigner) |
| SnapLines |
Hämtar en lista över SnapLine objekt som representerar betydande justeringspunkter för den här kontrollen. |
| Verbs |
Hämtar designtidsverb som stöds av komponenten som är associerad med designern. (Ärvd från ComponentDesigner) |
Metoder
| Name | Description |
|---|---|
| AddPaddingSnapLines(ArrayList) |
Lägger till utfyllnads snaplines. |
| BaseWndProc(Message) |
Bearbetar Windows meddelanden. (Ärvd från ControlDesigner) |
| CanAddComponent(IComponent) |
Anropas när en komponent läggs till i den överordnade containern. |
| CanBeParentedTo(IDesigner) |
Anger om den här designerns kontroll kan överordnas av den angivna designerns kontroll. (Ärvd från ControlDesigner) |
| CanParent(Control) |
Anger om den angivna kontrollen kan vara underordnad kontrollen som hanteras av den här designern. |
| CanParent(ControlDesigner) |
Anger om kontrollen som hanteras av den angivna designern kan vara underordnad den kontroll som hanteras av den här designern. |
| CreateTool(ToolboxItem, Point) |
Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet på den angivna platsen. |
| CreateTool(ToolboxItem, Rectangle) |
Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet inom gränserna för den angivna rektangeln. |
| CreateTool(ToolboxItem) |
Skapar en komponent eller kontroll från det angivna verktyget och lägger till den i det aktuella designdokumentet. |
| CreateToolCore(ToolboxItem, Int32, Int32, Int32, Int32, Boolean, Boolean) |
Tillhandahåller grundläggande funktioner för alla CreateTool(ToolboxItem) metoder. |
| DefWndProc(Message) |
Tillhandahåller standardbearbetning för Windows meddelanden. (Ärvd från ControlDesigner) |
| DisplayError(Exception) |
Visar information om det angivna undantaget för användaren. (Ärvd från ControlDesigner) |
| Dispose() |
Släpper alla resurser som används av ComponentDesigner. (Ärvd från ComponentDesigner) |
| Dispose(Boolean) |
Släpper de ohanterade resurser som används av ParentControlDesigner, och släpper eventuellt de hanterade resurserna. |
| DoDefaultAction() |
Skapar en metodsignatur i källkodsfilen för standardhändelsen på komponenten och navigerar användarens markören till den platsen. (Ärvd från ComponentDesigner) |
| EnableDesignMode(Control, String) |
Aktiverar designtidsfunktioner för en underordnad kontroll. (Ärvd från ControlDesigner) |
| EnableDragDrop(Boolean) |
Aktiverar eller inaktiverar dra och släpp-stöd för kontrollen som utformas. (Ärvd från ControlDesigner) |
| Equals(Object) |
Avgör om det angivna objektet är lika med det aktuella objektet. (Ärvd från Object) |
| GetControl(Object) |
Hämtar kontrollen från designern för den angivna komponenten. |
| GetControlGlyph(GlyphSelectionType) |
Hämtar en brödtextstecken som representerar kontrollens gränser. |
| GetGlyphs(GlyphSelectionType) |
Hämtar en samling Glyph objekt som representerar markeringskantlinjerna och handtag för en standardkontroll. |
| GetHashCode() |
Fungerar som standard-hash-funktion. (Ärvd från Object) |
| GetHitTest(Point) |
Anger om ett musklick vid den angivna punkten ska hanteras av kontrollen. (Ärvd från ControlDesigner) |
| GetParentForComponent(IComponent) |
Används av härledda klasser för att avgöra om den returnerar kontrollen som utformas eller någon annan Container när du lägger till en komponent i den. |
| GetService(Type) |
Försöker hämta den angivna typen av tjänst från designlägesplatsen för designerns komponent. (Ärvd från ComponentDesigner) |
| GetType() |
Hämtar den aktuella instansen Type . (Ärvd från Object) |
| GetUpdatedRect(Rectangle, Rectangle, Boolean) |
Uppdaterar positionen för den angivna rektangeln och justerar den för rutnätsjustering om rutnätsjusteringsläget är aktiverat. |
| HookChildControls(Control) |
Dirigerar meddelanden från de underordnade kontrollerna i den angivna kontrollen till designern. (Ärvd från ControlDesigner) |
| Initialize(IComponent) |
Initierar designern med den angivna komponenten. |
| InitializeExistingComponent(IDictionary) |
Initierar om en befintlig komponent. (Ärvd från ControlDesigner) |
| InitializeNewComponent(IDictionary) |
Initierar en nyskapade komponent. |
| InitializeNonDefault() |
Initierar kontrollens egenskaper till värden som inte är standardvärden. (Ärvd från ControlDesigner) |
| InternalControlDesigner(Int32) |
Returnerar den interna kontrolldesignern med det angivna indexet ControlDesigneri . (Ärvd från ControlDesigner) |
| InvokeCreateTool(ParentControlDesigner, ToolboxItem) |
Skapar ett verktyg från den angivna ToolboxItem. |
| InvokeGetInheritanceAttribute(ComponentDesigner) |
Hämtar den InheritanceAttribute angivna ComponentDesigner. (Ärvd från ComponentDesigner) |
| MemberwiseClone() |
Skapar en ytlig kopia av den aktuella Object. (Ärvd från Object) |
| NumberOfInternalControlDesigners() |
Returnerar antalet interna kontrolldesigners i ControlDesigner. (Ärvd från ControlDesigner) |
| OnContextMenu(Int32, Int32) |
Visar snabbmenyn och ger möjlighet att utföra ytterligare bearbetning när snabbmenyn är på väg att visas. (Ärvd från ControlDesigner) |
| OnCreateHandle() |
Ger en möjlighet att utföra ytterligare bearbetning omedelbart efter att kontrollhandtaget har skapats. (Ärvd från ControlDesigner) |
| OnDragComplete(DragEventArgs) |
Anropas för att rensa en dra-och-släpp-åtgärd. |
| OnDragDrop(DragEventArgs) |
Anropas när ett dra och släpp-objekt släpps i kontrolldesignervyn. |
| OnDragEnter(DragEventArgs) |
Anropas när en dra och släpp-åtgärd kommer in i kontrolldesignervyn. |
| OnDragLeave(EventArgs) |
Anropas när en dra och släpp-åtgärd lämnar kontrolldesignervyn. |
| OnDragOver(DragEventArgs) |
Anropas när ett dra och släpp-objekt dras över kontrolldesignervyn. |
| OnGiveFeedback(GiveFeedbackEventArgs) |
Anropas när en dra och släpp-åtgärd pågår för att tillhandahålla visuella tips baserat på musens plats medan en dragåtgärd pågår. |
| OnGiveFeedback(GiveFeedbackEventArgs) |
Tar emot ett anrop när en dra och släpp-åtgärd pågår för att tillhandahålla visuella tips baserat på musens plats medan en dragåtgärd pågår. (Ärvd från ControlDesigner) |
| OnMouseDragBegin(Int32, Int32) |
Anropas som svar på den vänstra musknappen som trycks in och hålls över komponenten. |
| OnMouseDragEnd(Boolean) |
Anropades i slutet av en dra och släpp-åtgärd för att slutföra eller avbryta åtgärden. |
| OnMouseDragMove(Int32, Int32) |
Anropade för varje rörelse av musen under en dra och släpp-åtgärd. |
| OnMouseEnter() |
Anropas när musen först anger kontrollen. |
| OnMouseEnter() |
Tar emot ett anrop när musen först anger kontrollen. (Ärvd från ControlDesigner) |
| OnMouseHover() |
Anropas när musen hovrar över kontrollen. |
| OnMouseHover() |
Tar emot ett anrop när musen hovrar över kontrollen. (Ärvd från ControlDesigner) |
| OnMouseLeave() |
Anropas när musen först anger kontrollen. |
| OnMouseLeave() |
Tar emot ett anrop när musen först anger kontrollen. (Ärvd från ControlDesigner) |
| OnPaintAdornments(PaintEventArgs) |
Kallas när kontrollen som designern hanterar har målat sin yta så att designern kan måla ytterligare utsmyckningar ovanpå kontrollen. |
| OnSetComponentDefaults() |
Föråldrad.
Föråldrad.
Anropas när designern initieras. (Ärvd från ControlDesigner) |
| OnSetCursor() |
Ger en möjlighet att ändra den aktuella musmarkören. |
| PostFilterAttributes(IDictionary) |
Gör att en designer kan ändra eller ta bort objekt från den uppsättning attribut som den exponerar via en TypeDescriptor. (Ärvd från ComponentDesigner) |
| PostFilterEvents(IDictionary) |
Gör att en designer kan ändra eller ta bort objekt från den uppsättning händelser som den exponerar via en TypeDescriptor. (Ärvd från ComponentDesigner) |
| PostFilterProperties(IDictionary) |
Gör att en designer kan ändra eller ta bort objekt från den uppsättning egenskaper som den exponerar via en TypeDescriptor. (Ärvd från ComponentDesigner) |
| PreFilterAttributes(IDictionary) |
Gör att en designer kan lägga till i den uppsättning attribut som den exponerar via en TypeDescriptor. (Ärvd från ComponentDesigner) |
| PreFilterEvents(IDictionary) |
Tillåter att en designer lägger till i den uppsättning händelser som den exponerar via en TypeDescriptor. (Ärvd från ComponentDesigner) |
| PreFilterProperties(IDictionary) |
Justerar den uppsättning egenskaper som komponenten exponerar via en TypeDescriptor. |
| RaiseComponentChanged(MemberDescriptor, Object, Object) |
Meddelar IComponentChangeService att den här komponenten har ändrats. (Ärvd från ComponentDesigner) |
| RaiseComponentChanging(MemberDescriptor) |
IComponentChangeService Meddelar att den här komponenten håller på att ändras. (Ärvd från ComponentDesigner) |
| ToString() |
Returnerar en sträng som representerar det aktuella objektet. (Ärvd från Object) |
| UnhookChildControls(Control) |
Dirigerar meddelanden för underordnade till den angivna kontrollen till varje kontroll i stället för till en överordnad designer. (Ärvd från ControlDesigner) |
| WndProc(Message) |
Bearbetar Windows meddelanden. |
| WndProc(Message) |
Bearbetar Windows meddelanden och dirigerar dem till kontrollen. (Ärvd från ControlDesigner) |