다음을 통해 공유


LoginViewDesigner.GetDesignTimeHtml 메서드

정의

연결된 LoginView 컨트롤을 디자인 타임에 렌더링하는 데 사용되는 태그를 가져옵니다.

오버로드

GetDesignTimeHtml()

디자인 타임에, 연결된 컨트롤을 렌더링하는 데 사용되는 태그를 가져옵니다.

GetDesignTimeHtml(DesignerRegionCollection)

디자인 타임에, 연결된 컨트롤을 렌더링하는 데 사용되는 태그를 가져와서 디자이너 영역의 컬렉션을 채웁니다.

GetDesignTimeHtml()

디자인 타임에, 연결된 컨트롤을 렌더링하는 데 사용되는 태그를 가져옵니다.

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

반환

String

디자인 타임에 LoginView를 렌더링하는 데 사용되는 태그를 포함한 문자열입니다.

예제

다음 코드 예제에서는 재정의 하는 방법을 보여 줍니다.는 GetDesignTimeHtml 에서 상속 된 클래스에서 메서드를 LoginViewDesigner 클래스에서 파생 된 컨트롤의 모양을 변경 하는 LoginView 디자인 타임에는 클래스입니다. 이 예제에서는 해당 범위 보다 편리 하 게 컨트롤 주위에 주황색 테두리를 그립니다.

// Generate the design-time markup.
public override string GetDesignTimeHtml(DesignerRegionCollection regions)
{
    // Make the control more visible in the designer.   
    // Enclose the markup in a table with an orange border. 
    const string openTableMarkup =
        "<table><tr><td style=\"border:4 solid #FF7F00;\">";
    const string closeTableMarkup = "</td></tr></table>";

    // Call the base method to generate the markup.
    string markup = base.GetDesignTimeHtml(regions);

    return openTableMarkup + markup + closeTableMarkup;
} // GetDesignTimeHtml
' 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

설명

합니다 GetDesignTimeHtml 연결 된 템플릿 인덱스를 설정 하는 메서드 LoginView 컨트롤을 다시 현재 디자인 타임에 인덱스 및 다음 연결 된 컨트롤 및 필요한 경우 해당 자식 컨트롤을 바인딩할 데이터입니다. 다음으로 GetDesignTimeHtml 호출을 GetDesignTimeHtml 기본 태그를 생성 하는 메서드.

상속자 참고

재정의 하는 경우는 GetDesignTimeHtml() 메서드를 호출 해야 합니다 GetDesignTimeHtml() 기본 결국은 여러 재정의 않으므로 수준에서 메서드 호출을 LoginView 컨트롤이 나 태그를 생성 하는 컨트롤의 복사본을.

추가 정보

적용 대상

GetDesignTimeHtml(DesignerRegionCollection)

디자인 타임에, 연결된 컨트롤을 렌더링하는 데 사용되는 태그를 가져와서 디자이너 영역의 컬렉션을 채웁니다.

public:
 override System::String ^ GetDesignTimeHtml(System::Web::UI::Design::DesignerRegionCollection ^ regions);
public override string GetDesignTimeHtml (System.Web.UI.Design.DesignerRegionCollection regions);
override this.GetDesignTimeHtml : System.Web.UI.Design.DesignerRegionCollection -> string
Public Overrides Function GetDesignTimeHtml (regions As DesignerRegionCollection) As String

매개 변수

regions
DesignerRegionCollection

DesignerRegionCollection의 디자인 타임 보기에서 선택 및 클릭할 수 있는 영역의 정의가 추가될 LoginView입니다.

반환

String

디자인 타임에 LoginView를 렌더링하는 데 사용되는 태그를 포함한 문자열입니다.

예제

다음 코드 예제에서는 재정의 하는 방법을 보여 줍니다.는 GetDesignTimeHtml 에서 상속 된 클래스에서 메서드를 LoginViewDesigner 클래스에서 파생 된 컨트롤의 모양을 변경 하는 LoginView 디자인 타임에는 클래스입니다. 이 예제에서는 해당 범위 보다 편리 하 게 컨트롤 주위에 주황색 테두리를 그립니다.

// Generate the design-time markup.
public override string GetDesignTimeHtml(DesignerRegionCollection regions)
{
    // Make the control more visible in the designer.   
    // Enclose the markup in a table with an orange border. 
    const string openTableMarkup =
        "<table><tr><td style=\"border:4 solid #FF7F00;\">";
    const string closeTableMarkup = "</td></tr></table>";

    // Call the base method to generate the markup.
    string markup = base.GetDesignTimeHtml(regions);

    return openTableMarkup + markup + closeTableMarkup;
} // GetDesignTimeHtml
' 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

설명

합니다 GetDesignTimeHtml 메서드를 만듭니다는 EditableDesignerRegion 개체 템플릿 편집 비주얼 디자이너 화면에 초기화 한 다음 영역에 대 한 템플릿으로 합니다. 템플릿이 정의 된 경우 편집을 시작 하려면 클릭 하는 문자열로 표시 됩니다. 미리 정의 된 상수는 반환 된 태그 생성에 사용 됩니다.

상속자 참고

GetDesignTimeHtml(DesignerRegionCollection) 오버 로드는 기본 메서드를 호출 하지 않습니다 또는 LoginView 컨트롤 태그를 생성 합니다.

추가 정보

적용 대상