DeclarativeCatalogPartDesigner.GetDesignTimeHtml Method

Definition

Overrides the parent method to prevent rendering of the control.

public:
 override System::String ^ GetDesignTimeHtml();
public override string GetDesignTimeHtml ();
override this.GetDesignTimeHtml : unit -> string
Public Overrides Function GetDesignTimeHtml () As String

Returns

Either an empty string ("") or the value of GetEmptyDesignTimeHtml().

Remarks

If there is no WebPartsTemplate associated with the control, the designer displays the standard gray box with the class name and instance name of the control. Otherwise, no design-time rendering occurs at all because the check boxes and Web Parts titles are rendered by the CatalogPartChrome instead of the DeclarativeCatalogPart itself.

Applies to