Gets or sets the type of .NET controls to create in ControlNode objects.
Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms
C# Copy Code |
---|
public Type DefaultControlType { get; set; } |
Visual Basic Copy Code |
---|
Public Property DefaultControlType As Type |
A reference to the System.Type that specifies a class of .NET controls to create.
DefaultControlType must be subclass of System.Windows.Forms.Control. In addition, the type must provide a constructor that takes no parameters. When a control-hosting node is created, the control's constructor is invoked and the newly-created instance is made a child of the DiagramView control. ControlNode nodes can be created either interactively or via method calls. Reference to the hosted System.Windows.Forms.Control-derived object can be get via the host's Control property.