Condividi tramite


WebPartZone Members

Include Protected Members
Include Inherited Members

Allows you to create zones that are containers for Web Parts. The properties of this class allow you to specify how the zone will appear on your Web Parts page and also the behavior of the zone itself. For example, when you create the zone object, you can allow personalization and/or customization for the Web Parts placed within the zone.

The WebPartZone type exposes the following members.

Constructors

  Name Description
Public method WebPartZone Initializes a new instance of the WebPartZone class.

Top

Properties

  Name Description
Public property AccessKey (Inherited from WebControl.)
Protected property Adapter (Inherited from Control.)
Public property AllowCustomization Gets or sets whether the Web Parts within the zone can be modified in the user interface for all users.
Public property AllowLayoutChange Gets or sets a value that indicates whether the layout of WebPart controls within the zone can be changed. (Overrides WebPartZoneBase.AllowLayoutChange.)
Public property AllowPersonalization Gets or sets a value indicating whether Web Parts within the zone can be modified in the user interface for individual users.
Public property AppRelativeTemplateSourceDirectory (Inherited from Control.)
Public property Attributes (Inherited from WebControl.)
Public property BackColor (Inherited from WebControl.)
Public property BackImageUrl (Inherited from WebZone.)
Public property BindingContainer (Inherited from Control.)
Public property BorderColor (Inherited from WebPartZoneBase.)
Public property BorderStyle (Inherited from WebPartZoneBase.)
Public property BorderWidth (Inherited from WebPartZoneBase.)
Protected property ChildControlsCreated (Inherited from Control.)
Public property ClientID (Inherited from Control.)
Protected property ClientIDSeparator (Inherited from Control.)
Public property CloseVerb (Inherited from WebPartZoneBase.)
Public property ConnectVerb (Inherited from WebPartZoneBase.)
Public property ContainerWidth Gets or sets the hint for contained Web Parts of the expected width of the zone.
Protected property Context (Inherited from Control.)
Public property Controls (Inherited from CompositeControl.)
Public property ControlStyle (Inherited from WebControl.)
Public property ControlStyleCreated (Inherited from WebControl.)
Public property CssClass (Inherited from WebControl.)
Public property DeleteVerb (Inherited from WebPartZoneBase.)
Protected property DesignMode (Inherited from Control.)
Public property DisplayTitle Gets the current value of the text being used as the title for the WebPartZone when the zone itself is visible. (Overrides WebPartZoneBase.DisplayTitle.)
Protected property DragDropEnabled (Inherited from WebPartZoneBase.)
Public property DragHighlightColor (Inherited from WebPartZoneBase.)
Public property EditVerb (Inherited from WebPartZoneBase.)
Public property EmptyZoneText (Inherited from WebPartZoneBase.)
Public property EmptyZoneTextStyle (Inherited from WebZone.)
Public property Enabled (Inherited from WebControl.)
Public property EnableTheming (Inherited from WebControl.)
Public property EnableViewState (Inherited from Control.)
Public property ErrorStyle (Inherited from WebZone.)
Protected property Events (Inherited from Control.)
Public property ExportVerb (Inherited from WebPartZoneBase.)
Public property Font (Inherited from WebControl.)
Public property FooterStyle (Inherited from WebZone.)
Public property ForeColor (Inherited from WebControl.)
Public property FrameType Obsolete. Gets or sets the default style of the frame for Web Parts contained within the WebPartZone control.
Public property HasAttributes (Inherited from WebControl.)
Protected property HasChildViewState (Inherited from Control.)
Protected property HasFooter (Inherited from WebPartZoneBase.)
Protected property HasHeader (Inherited from WebPartZoneBase.)
Public property HeaderStyle (Inherited from WebZone.)
Public property HeaderText Gets or sets the text for the header area of the zone. (Overrides WebZone.HeaderText.)
Public property Height (Inherited from WebControl.)
Public property HelpVerb (Inherited from WebPartZoneBase.)
Public property ID (Inherited from Control.)
Protected property IdSeparator (Inherited from Control.)
Protected property IsChildControlStateCleared (Inherited from Control.)
Protected property IsEnabled (Inherited from WebControl.)
Protected property IsTrackingViewState (Inherited from Control.)
Protected property IsViewStateEnabled (Inherited from Control.)
Public property LayoutOrientation (Inherited from WebPartZoneBase.)
Protected property LoadViewStateByID (Inherited from Control.)
Public property LockLayout Obsolete. Gets or sets whether Web Parts within the zone can be added, deleted, resized, or moved.
Public property MenuCheckImageStyle (Inherited from WebPartZoneBase.)
Public property MenuCheckImageUrl (Inherited from WebPartZoneBase.)
Public property MenuLabelHoverStyle (Inherited from WebPartZoneBase.)
Public property MenuLabelStyle (Inherited from WebPartZoneBase.)
Public property MenuLabelText (Inherited from WebPartZoneBase.)
Public property MenuPopupImageUrl (Inherited from WebPartZoneBase.)
Public property MenuPopupStyle (Inherited from WebPartZoneBase.)
Public property MenuVerbHoverStyle (Inherited from WebPartZoneBase.)
Public property MenuVerbStyle (Inherited from WebPartZoneBase.)
Public property MinimizeVerb (Inherited from WebPartZoneBase.)
Public property NamingContainer (Inherited from Control.)
Public property Orientation Obsolete. Gets or sets which direction Web Parts will be placed in the zone.
Public property Padding (Inherited from WebZone.)
Public property Page (Inherited from Control.)
Public property Parent (Inherited from Control.)
Public property PartChromePadding (Inherited from WebZone.)
Public property PartChromeStyle (Inherited from WebZone.)
Public property PartChromeType (Inherited from WebZone.)
Public property PartStyle (Inherited from WebZone.)
Public property PartTitleStyle (Inherited from WebZone.)
Public property QuickAdd Obsolete. This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead.
Protected property RenderClientScript (Inherited from WebZone.)
Public property RestoreVerb (Inherited from WebPartZoneBase.)
Public property SelectedPartChromeStyle (Inherited from WebPartZoneBase.)
Public property ShowTitleIcons (Inherited from WebPartZoneBase.)
Public property Site (Inherited from Control.)
Public property SkinID (Inherited from WebControl.)
Public property Style (Inherited from WebControl.)
Public property TabIndex (Inherited from WebControl.)
Protected property TagKey (Inherited from WebZone.)
Protected property TagName (Inherited from WebControl.)
Public property TemplateControl (Inherited from Control.)
Public property TemplateSourceDirectory (Inherited from Control.)
Public property Title Obsolete. Gets or sets the friendly name used in the Web Parts page designer and FrontPage to denote a zone to the user. This property can also specify a localization string.
Public property TitleBarVerbButtonType (Inherited from WebPartZoneBase.)
Public property TitleBarVerbStyle (Inherited from WebPartZoneBase.)
Public property ToolTip (Inherited from WebControl.)
Public property UniqueID (Inherited from Control.)
Public property VerbButtonType (Inherited from WebPartZoneBase.)
Public property VerbStyle (Inherited from WebZone.)
Protected property ViewState (Inherited from Control.)
Protected property ViewStateIgnoresCase (Inherited from Control.)
Public property Visible (Inherited from Control.)
Public property WebPartChrome (Inherited from WebPartZoneBase.)
Protected property WebPartManager (Inherited from WebZone.)
Public property WebParts (Inherited from WebPartZoneBase.)
Public property WebPartVerbRenderMode (Inherited from WebPartZoneBase.)
Public property Width (Inherited from WebControl.)
Public property ZoneTemplate (Inherited from WebPartZone.)

Top

Methods

  Name Description
Protected method AddAttributesToRender (Inherited from WebControl.)
Protected method AddedControl (Inherited from Control.)
Protected method AddParsedSubObject Prevents parsed elements from being added into the ControlCollection of the WebPartZone. (Overrides Control.AddParsedSubObject(Object).)
Public method ApplyStyle (Inherited from WebControl.)
Public method ApplyStyleSheetSkin (Inherited from Control.)
Protected method BuildProfileTree (Inherited from Control.)
Protected method ClearChildControlState (Inherited from Control.)
Protected method ClearChildState (Inherited from Control.)
Protected method ClearChildViewState (Inherited from Control.)
Protected method CloseWebPart (Inherited from WebPartZoneBase.)
Protected method ConnectWebPart (Inherited from WebPartZoneBase.)
Public method CopyBaseAttributes (Inherited from WebControl.)
Protected method CreateChildControls Creates the set of child controls that are contained in the zone. (Overrides WebPartZoneBase.CreateChildControls().)
Protected method CreateControlCollection Creates a ControlCollection that contains all the controls in the zone. (Overrides WebPartZoneBase.CreateControlCollection().)
Protected method CreateControlStyle (Inherited from WebPartZoneBase.)
Protected method CreateWebPartChrome Creates a WebPartChrome object to change the appearance of the WebPart controls in the zone. (Overrides WebPartZoneBase.CreateWebPartChrome().)
Public method DataBind() (Inherited from CompositeControl.)
Protected method DataBind(Boolean) (Inherited from Control.)
Protected method DataBindChildren (Inherited from Control.)
Protected method DeleteWebPart (Inherited from WebPartZoneBase.)
Public method Dispose Used to release all the resources that are owned by the Web Part zone before the zone is unloaded. (Overrides Control.Dispose().)
Protected method EditWebPart (Inherited from WebPartZoneBase.)
Protected method EnsureChildControls (Inherited from Control.)
Protected method EnsureID (Inherited from Control.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FindControl(String) (Inherited from Control.)
Protected method FindControl(String, Int32) (Inherited from Control.)
Public method Focus (Inherited from Control.)
Protected method GetDesignModeState (Inherited from Control.)
Public method GetEffectiveChromeType Gets the actual or effective current PartChromeType() value of a WebPart control, given the PartChromeType property of the zone and the current display mode of the Web Parts page. (Overrides WebPartZoneBase.GetEffectiveChromeType(Part).)
Public method GetHashCode (Inherited from Object.)
Protected method GetInitialWebParts (Inherited from WebPartZone.)
Public method GetType (Inherited from Object.)
Public method HasControls (Inherited from Control.)
Protected method HasEvents (Inherited from Control.)
Protected method IsLiteralContent (Inherited from Control.)
Protected method LoadControlState (Inherited from Control.)
Protected method LoadViewState (Inherited from WebPartZoneBase.)
Protected method MapPathSecure (Inherited from Control.)
Protected method MemberwiseClone (Inherited from Object.)
Public method MergeStyle (Inherited from WebControl.)
Protected method MinimizeWebPart (Inherited from WebPartZoneBase.)
Protected method OnBubbleEvent (Inherited from Control.)
Protected method OnCreateVerbs Raises the CreateVerbs event. (Overrides WebPartZoneBase.OnCreateVerbs(WebPartVerbsEventArgs).)
Protected method OnDataBinding (Inherited from Control.)
Protected method OnInit Handles the Init event. (Overrides WebPartZone.OnInit(EventArgs).)
Protected method OnLoad Handles the Load event. (Overrides Control.OnLoad(EventArgs).)
Protected method OnPreRender Handles the PreRender event. (Overrides WebPartZoneBase.OnPreRender(EventArgs).)
Protected method OnUnload (Inherited from Control.)
Protected method OpenFile (Inherited from Control.)
Protected method RaiseBubbleEvent (Inherited from Control.)
Protected method RaisePostBackEvent (Inherited from WebPartZoneBase.)
Protected method RecreateChildControls (Inherited from CompositeControl.)
Protected method RemovedControl (Inherited from Control.)
Protected method Render Renders the HTML for the body of the WebPartZone. (Overrides WebPartZoneBase.Render(HtmlTextWriter).)
Public method RenderBeginTag (Inherited from WebZone.)
Protected method RenderBody (Inherited from WebPartZoneBase.)
Protected method RenderChildren (Inherited from Control.)
Protected method RenderContents (Inherited from WebZone.)
Public method RenderControl(HtmlTextWriter) (Inherited from Control.)
Protected method RenderControl(HtmlTextWriter, ControlAdapter) (Inherited from Control.)
Protected method RenderDropCue (Inherited from WebPartZoneBase.)
Public method RenderEndTag (Inherited from WebControl.)
Protected method RenderFooter Renders the footer of the WebPartZone. (Overrides WebZone.RenderFooter(HtmlTextWriter).)
Protected method RenderHeader Renders the header of the WebPartZone. (Overrides WebPartZoneBase.RenderHeader(HtmlTextWriter).)
Protected method ResolveAdapter (Inherited from Control.)
Public method ResolveClientUrl (Inherited from Control.)
Public method ResolveUrl (Inherited from Control.)
Protected method RestoreWebPart (Inherited from WebPartZoneBase.)
Protected method SaveControlState (Inherited from Control.)
Protected method SaveViewState (Inherited from WebPartZoneBase.)
Protected method SetDesignModeState (Inherited from Control.)
Public method SetRenderMethodDelegate (Inherited from Control.)
Public method ToString (Inherited from Object.)
Protected method TrackViewState (Inherited from WebPartZoneBase.)

Top

Events

  Name Description
Public event CreateVerbs (Inherited from WebPartZoneBase.)
Public event DataBinding (Inherited from Control.)
Public event Disposed (Inherited from Control.)
Public event Init (Inherited from Control.)
Public event Load (Inherited from Control.)
Public event PreRender (Inherited from Control.)
Public event Unload (Inherited from Control.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IParserAccessor.AddParsedSubObject (Inherited from Control.)
Explicit interface implemetationPrivate property IControlBuilderAccessor.ControlBuilder (Inherited from Control.)
Explicit interface implemetationPrivate property IDataBindingsAccessor.DataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property IExpressionsAccessor.Expressions (Inherited from Control.)
Explicit interface implemetationPrivate method IAttributeAccessor.GetAttribute (Inherited from WebControl.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.GetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate property IDataBindingsAccessor.HasDataBindings (Inherited from Control.)
Explicit interface implemetationPrivate property IExpressionsAccessor.HasExpressions (Inherited from Control.)
Explicit interface implemetationPrivate method IPostBackEventHandler.RaisePostBackEvent (Inherited from WebPartZoneBase.)
Explicit interface implemetationPrivate method ICompositeControlDesignerAccessor.RecreateChildControls (Inherited from CompositeControl.)
Explicit interface implemetationPrivate method IAttributeAccessor.SetAttribute (Inherited from WebControl.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.SetDesignModeState (Inherited from Control.)
Explicit interface implemetationPrivate method IControlDesignerAccessor.SetOwnerControl (Inherited from Control.)
Explicit interface implemetationPrivate property IControlDesignerAccessor.UserData (Inherited from Control.)

Top

See Also

Reference

WebPartZone Class

Microsoft.SharePoint.WebPartPages Namespace