LoginViewDesigner.GetDesignTimeHtml Method (DesignerRegionCollection)
Gets the markup that is used to render the associated control at design time and populates a collection of designer regions.
Assembly: System.Design (in System.Design.dll)
'Declaration Public Overrides Function GetDesignTimeHtml ( _ regions As DesignerRegionCollection _ ) As String
The GetDesignTimeHtml method creates an EditableDesignerRegion object for a template editing area on the visual designer surface, and then initializes it as a template. If no templates are defined, a string is displayed that prompts you to click to begin editing. A predefined constant is used to generate the returned markup.Notes to Inheritors
The following code example shows how to override the GetDesignTimeHtml method in a class that is inherited from the LoginViewDesigner class to change the appearance of a control that is derived from the LoginView class at design time. The example draws an orange border around the control to make its extent more visible.
' Generate the design-time markup. Public Overrides Function GetDesignTimeHtml( _ ByVal regions As DesignerRegionCollection) As String ' Make the control more visible in the designer. ' Enclose the markup in a table with an orange border. Dim openTableMarkup As String = _ "<table><tr><td style=""border:4 solid #FF7F00;"">" Dim closeTableMarkup As String = "</td></tr></table>" ' Call the base method to generate the markup. Dim markup As String = MyBase.GetDesignTimeHtml(regions) Return openTableMarkup & markup & closeTableMarkup End Function ' GetDesignTimeHtml
- 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.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.