WebPartZoneBase.EditVerb 속성

정의

최종 사용자가 영역의 WebPartVerb 컨트롤을 편집할 수 있도록 하는 WebPart 개체에 대한 참조를 가져옵니다.

public:
 virtual property System::Web::UI::WebControls::WebParts::WebPartVerb ^ EditVerb { System::Web::UI::WebControls::WebParts::WebPartVerb ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public virtual System.Web.UI.WebControls.WebParts.WebPartVerb EditVerb { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.EditVerb : System.Web.UI.WebControls.WebParts.WebPartVerb
Public Overridable ReadOnly Property EditVerb As WebPartVerb

속성 값

최종 사용자가 WebPartVerb 컨트롤을 편집할 수 있도록 하는 WebPart입니다.

특성

예제

다음 코드 예제에서는 선언적 사용을 보여 줍니다는 EditVerb 속성에 컨트롤입니다 WebPartZone . 속성은 컨트롤과 함께 요소를 사용하여 <EditVerb> 선언적으로 액세스됩니다 WebPartZone1 . 편집 동사는 여기서 요소를 사용하지 <EditVerb> 않더라도 편집 모드에서 이 컨트롤에 존재하지만, 이를 사용하여 UI(사용자 인터페이스)의 동사를 나타내는 텍스트와 같은 일부 특성을 설정할 수 있습니다. 코드 숨김 소스 파일 및 이 코드의 영역을 포함하는 .aspx 페이지를 포함한 전체 코드 예제는 클래스 개요를 WebPartZoneBase 참조하세요.

<asp:WebPartZone 
  ID="WebPartZone1" 
  Runat="server"
  LayoutOrientation="Vertical" >
  <EditVerb Text="Edit WebPart" />
  <SelectedPartChromeStyle BackColor="LightBlue" />
  <ZoneTemplate>
    <asp:BulletedList 
      ID="BulletedList1" 
      Runat="server"
      DisplayMode="HyperLink" 
      Title="Favorite Links" >
      <asp:ListItem Value="http://msdn.microsoft.com">
        MSDN
      </asp:ListItem>
      <asp:ListItem Value="http://www.asp.net">
        ASP.NET
      </asp:ListItem>
      <asp:ListItem Value="http://www.msn.com">
        MSN
      </asp:ListItem>
    </asp:BulletedList>
    <asp:Calendar ID="Calendar1" Runat="server" 
      Title="My Calendar" />
  </ZoneTemplate>
</asp:WebPartZone>
<asp:WebPartZone 
  ID="WebPartZone1" 
  Runat="server"
  LayoutOrientation="Vertical" >
  <EditVerb Text="Edit WebPart" />
  <SelectedPartChromeStyle BackColor="LightBlue" />
  <ZoneTemplate>
    <asp:BulletedList 
      ID="BulletedList1" 
      Runat="server"
      DisplayMode="HyperLink" 
      Title="Favorite Links" >
      <asp:ListItem Value="http://msdn.microsoft.com">
        MSDN
      </asp:ListItem>
      <asp:ListItem Value="http://www.asp.net">
        ASP.NET
      </asp:ListItem>
      <asp:ListItem Value="http://www.msn.com">
        MSN
      </asp:ListItem>
    </asp:BulletedList>
    <asp:Calendar ID="Calendar1" Runat="server" 
      Title="My Calendar" />
  </ZoneTemplate>
</asp:WebPartZone>

설명

컨트롤의 EditVerb 속성에서 WebPartZoneBase 참조하는 편집 동사를 사용하면 최종 사용자가 영역의 컨트롤을 편집 모드로 전환 WebPart 할 수 있습니다. 여기서 사용자는 컨트롤의 모양, 속성, 레이아웃 및 콘텐츠를 개인 설정할 수 있습니다.

영역의 모든 컨트롤에 동일한 편집 동사가 사용됩니다. 웹 파트 페이지가 편집 표시 모드()EditDisplayMode로 전환되면 영역에 포함된 각 WebPart 컨트롤의 동사 메뉴에 편집 동사가 표시됩니다.

적용 대상

추가 정보