DesignSurfaceManager.ActiveDesignSurface Property

Definition

Gets or sets the active designer.

public virtual System.ComponentModel.Design.DesignSurface ActiveDesignSurface { get; set; }
public virtual System.ComponentModel.Design.DesignSurface? ActiveDesignSurface { get; set; }

Property Value

The active designer.

Remarks

The ActiveDesignSurface property should be set by the designer's user interface whenever a designer becomes the active window. The default implementation of this property works with the default implementation of the IDesignerEventService interface to notify interested parties that a new designer is now active. If you provide your own implementation of IDesignerEventService, you should override this property to notify your service appropriately. This property can be set to null, indicating that no designer is active.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.1, 5, 6, 7, 8, 9