Share via


ImportCatalogPart.Title 속성

정의

ImportCatalogPart 컨트롤의 제목 표시줄에 나타나는 제목을 가져오거나 설정합니다.

public:
 virtual property System::String ^ Title { System::String ^ get(); void set(System::String ^ value); };
public override string Title { get; set; }
member this.Title : string with get, set
Public Overrides Property Title As String

속성 값

String

컨트롤의 제목으로 사용되는 문자열입니다. 기본값은 웹 파트 컨트롤 집합에서 제공하는 계산된 컨트롤 이름입니다.

예제

다음 코드 예제에서는 선언적 및 프로그래밍 방식으로 속성을 사용 Title 하는 방법을 보여 줍니다. 예제를 실행하는 데 필요한 전체 코드 및 지침은 클래스 개요의 예제 섹션을 ImportCatalogPart 참조하세요.

코드의 다음 섹션에서 속성 값이 컨트롤에 Title 대해 선언적으로 설정됩니다.

<asp:CatalogZone ID="CatalogZone1" runat="server">
  <ZoneTemplate>
    <asp:ImportCatalogPart ID="ImportCatalogPart1" 
      runat="server" 
      Title="My ImportCatalogPart" 
      OnPreRender="ImportCatalogPart1_PreRender"
      BrowseHelpText="Type a path or browse to find a control's 
        description file." 
      UploadButtonText="Upload Description File" 
      UploadHelpText="Click the button to upload the description 
        file."
      ImportedPartLabelText="My User Information WebPart" 
      PartImportErrorLabelText="An error occurred while trying 
        to import a description file."  />
  </ZoneTemplate>
</asp:CatalogZone>
<asp:CatalogZone ID="CatalogZone1" runat="server">
  <ZoneTemplate>
    <asp:ImportCatalogPart ID="ImportCatalogPart1" 
      runat="server" 
      Title="My ImportCatalogPart" 
      OnPreRender="ImportCatalogPart1_PreRender"
      BrowseHelpText="Type a path or browse to find a control's 
        description file." 
      UploadButtonText="Upload Description File" 
      UploadHelpText="Click the button to upload the description 
        file."
      ImportedPartLabelText="My User Information WebPart" 
      PartImportErrorLabelText="An error occurred while trying 
        to import a description file."  />
  </ZoneTemplate>
</asp:CatalogZone>

이 코드 섹션에서는 속성 값이 Title 프로그래밍 방식으로 할당됩니다.

protected void Button1_Click(object sender, EventArgs e)
{
  ImportCatalogPart1.Title = "Import Server Controls";
  ImportCatalogPart1.BrowseHelpText = "Enter the path to a "
    + "description file.";
  ImportCatalogPart1.UploadButtonText = "Upload Description";
  ImportCatalogPart1.UploadHelpText = "Upload a description file.";
  ImportCatalogPart1.ImportedPartLabelText = "Imported Controls";
  ImportCatalogPart1.PartImportErrorLabelText = "An error occurred " 
    + "during the import process.";

}
Protected Sub Button1_Click(ByVal sender As Object, _
  ByVal e As EventArgs)
    ImportCatalogPart1.Title = "Import Server Controls"
    ImportCatalogPart1.BrowseHelpText = "Enter the path to a " _
      & "description file."
    ImportCatalogPart1.UploadButtonText = "Upload Description"
    ImportCatalogPart1.UploadHelpText = "Upload a description file."
    ImportCatalogPart1.ImportedPartLabelText = "Imported Controls"
    ImportCatalogPart1.PartImportErrorLabelText = "An error occurred " _
      & "during the import process."
End Sub

브라우저에서 페이지를 로드할 때 표시 모드 드롭다운 목록 컨트롤을 사용하여 카탈로그 모드 를 선택하고 페이지를 카탈로그 모드로 전환할 수 있습니다. 카탈로그 모드의 페이지와 설명 파일이 업로드되면 컨트롤의 UI(사용자 인터페이스)에 표시되는 다양한 텍스트 문자열을 ImportCatalogPart 적어둡니다. 업로드 설명 파일 단추를 클릭하면 속성의 텍스트를 포함하여 UI의 여러 속성에 대한 텍스트가 Title 변경됩니다.

설명

속성 값은 Title 컨트롤이 카탈로그 모드에서 표시될 때 컨트롤의 ImportCatalogPart 제목 표시줄에 표시됩니다. 컨트롤이 페이지에 선언되면 특성을 사용하여 Title 속성 값을 설정할 수 있습니다. 타이틀에 대한 값을 제공하지 않으면 문화권별 기본값을 사용하여 이 컨트롤에서 사용자가 편집할 수 있는 속성의 종류를 설명합니다.

적용 대상

추가 정보