WebPartZone.GetEffectiveChromeType Method
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.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Overrides Function GetEffectiveChromeType ( _
part As Part _
) As PartChromeType
'Usage
Dim instance As WebPartZone
Dim part As Part
Dim returnValue As PartChromeType
returnValue = instance.GetEffectiveChromeType(part)
public override PartChromeType GetEffectiveChromeType(
Part part
)
Parameters
part
Type: System.Web.UI.WebControls.WebParts.PartA part control within the current zone.
Return Value
Type: System.Web.UI.WebControls.WebParts.PartChromeType
The type of border that currently frames WebPart controls that are contained by the zone.
Remarks
This override returns Default if the part parameter is a null object.