WebPartZone.GetEffectiveChromeType method
取得指定區域的 [ PartChromeType ] 屬性和目前的顯示模式的Web Parts pageWebPart控制項的實際或有效目前的**PartChromeType()**值。
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overrides Function GetEffectiveChromeType ( _
part As Part _
) As PartChromeType
'用途
Dim instance As WebPartZone
Dim part As Part
Dim returnValue As PartChromeType
returnValue = instance.GetEffectiveChromeType(part)
public override PartChromeType GetEffectiveChromeType(
Part part
)
參數
part
Type: System.Web.UI.WebControls.WebParts.Part目前區域中 Web 組件控制項。
傳回值
Type: System.Web.UI.WebControls.WebParts.PartChromeType
目前的框架區域所包含的WebPart控制項的框線類型。
備註
如果組件參數是 null 物件,這個覆寫會傳回Default 。