SupportsPreviewControlAttribute.SupportsPreviewControl Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating whether the control designer requires a temporary preview control at design time.
public:
property bool SupportsPreviewControl { bool get(); };
public bool SupportsPreviewControl { get; }
member this.SupportsPreviewControl : bool
Public ReadOnly Property SupportsPreviewControl As Boolean
true
if the designer uses a temporary copy of the associated control for design-time preview; false
if the designer uses an instance of the Component control that is contained in the designer.
Typically, you specify a value for the SupportsPreviewControl property by applying the SupportsPreviewControlAttribute attribute to a custom designer class declaration. The value of the SupportsPreviewControl property for the SupportsPreviewControlAttribute attribute determines the behavior for the UsePreviewControl and ViewControl members in the base ControlDesigner class.
Set the SupportsPreviewControl property to true
to indicate that the designer uses a temporary copy of the associated control to generate the design-time HTML. Changes to the temporary control are not persisted.
Set the SupportsPreviewControl property to false
to indicate that the designer returns the control instance, specifically the Component property, from the ViewControl method. Changes to the control object are persisted.
Proizvod | Verzije |
---|---|
.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 |
Povratne informacije o proizvodu .NET
.NET je projekt otvorenog koda. Odaberite vezu za slanje povratnih informacija: