WebPartZoneBase.MenuPopupImageUrl 속성

정의

영역에 있는 각 WebPart 컨트롤의 제목 표시줄에서 동사 드롭다운 메뉴를 여는 이미지의 URL을 가져오거나 설정합니다.

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

속성 값

String

동사 드롭다운 메뉴를 여는 데 사용되는 이미지의 URL을 나타내는 문자열입니다. 기본값은 빈 문자열("")입니다.

예제

다음 코드 예제에서는 컨트롤에서 속성의 MenuPopupImageUrl 선언적 사용을 보여 줍니다 WebPartZone . 코드 숨김 소스 파일 및 이 코드의 영역을 포함하는 .aspx 페이지를 포함한 전체 코드 예제는 클래스 개요를 WebPartZoneBase 참조하세요.

속성에 MenuPopupImageUrl 선언적 태그에 할당된 값이 있습니다. 이 값은 영향을 줍니다 WebPartZone2. 페이지를 브라우저에 로드한 후 페이지를 편집 모드로 전환하고 이미지 자리 표시자(또는 경로를 1에 할당한 경우 실제 이미지)가 컨트롤의 동사 메뉴 레이블에 WebPartZone2나타납니다.

<asp:WebPartZone 
  ID="WebPartZone2"
  Runat="server" 
  DragHighlightColor="#00ff00"
  AllowLayoutChange="true"
  EmptyZoneText="Add WebParts to this empty Zone."
  BorderWidth="2"
  BorderColor="DarkBlue"
  BorderStyle="Dashed" 
  MenuLabelText="Verbs Menu" 
  MenuPopupImageUrl="label.gif" >
  <VerbStyle Font-Italic="true" />
  <MenuLabelStyle BackColor="Lime" BorderWidth="1"  />
  <MenuLabelHoverStyle Font-Bold="true" />
  <MenuVerbHoverStyle BackColor="LightGrey" />
  <MenuVerbStyle Font-Italic="true" /> 
  <ZoneTemplate>
    <asp:Label ID="Label1" Runat="server" Title="Date" />
  </ZoneTemplate>
</asp:WebPartZone>
<asp:WebPartZone 
  ID="WebPartZone2"
  Runat="server" 
  DragHighlightColor="#00ff00"
  AllowLayoutChange="true"
  EmptyZoneText="Add WebParts to this empty Zone."
  BorderWidth="2"
  BorderColor="DarkBlue"
  BorderStyle="Dashed" 
  MenuLabelText="Verbs Menu" 
  MenuPopupImageUrl="label.gif" >
  <VerbStyle Font-Italic="true" />
  <MenuLabelStyle BackColor="Lime" BorderWidth="1"  />
  <MenuLabelHoverStyle Font-Bold="true" />
  <MenuVerbHoverStyle BackColor="LightGrey" />
  <MenuVerbStyle Font-Italic="true" /> 
  <ZoneTemplate>
    <asp:Label ID="Label1" Runat="server" Title="Date" />
  </ZoneTemplate>
</asp:WebPartZone>

설명

속성에 MenuPopupImageUrl 값이 할당되지 않은 경우 아래쪽 화살표처럼 보이는 기본 이미지가 제공되어 컨트롤의 WebPart 제목 표시줄에서 동사 드롭다운 메뉴를 엽니다.

적용 대상

추가 정보