ControlDesigner.DesignTimeHtmlRequiresLoadComplete Property
Gets a value indicating whether the designer must have completed loading before the design-time HTML can be used.
[Visual Basic] Public Overridable ReadOnly Property _ DesignTimeHtmlRequiresLoadComplete As Boolean [C#] public virtual bool DesignTimeHtmlRequiresLoadComplete {get;} [C++] public: __property virtual bool get_DesignTimeHtmlRequiresLoadComplete(); [JScript] public function get DesignTimeHtmlRequiresLoadComplete() : Boolean;
Property Value
true if loading must be complete before the design-time HTML can be accessed; otherwise, false.
Remarks
The default implementation returns false.
Example
[Visual Basic] The following code example overrides the DesignTimeHtmlRequiresLoadComplete property in a data-bound control designer. If the DataSource.Length property of the control designer is not set to zero, the DesignTimeHtmlRequiresLoadComplete returns true, and the designer must be completely loaded before the design-time HTML can be accessed.
[Visual Basic]
' Override the DesignTimeHtmlRequiresLoadComplete property.
Public Overrides ReadOnly Property DesignTimeHtmlRequiresLoadComplete() As Boolean
Get
' If there is a data source, look it up in the container
' and require the document to be loaded completely.
Return DataSource.Length <> 0
End Get
End Property
[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
ControlDesigner Class | ControlDesigner Members | System.Web.UI.Design Namespace