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)
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 Web part control within the current zone.
Return value
Type: System.Web.UI.WebControls.WebParts.PartChromeType
The type of border that currently frames the WebPart controls that are contained by the zone.
Remarks
This override returns Default if the part parameter is a null object.