GridHeaderUtils.GetLeafMostHeaderOfType Method (List<GridHeaderItem>, ScorecardNodeTypes)
Returns the lowest leaf header of the specified type from a list of headers.
Namespace: Microsoft.PerformancePoint.Scorecards
Assembly: Microsoft.PerformancePoint.Scorecards.Client (in Microsoft.PerformancePoint.Scorecards.Client.dll)
Syntax
'Declaration
Public Shared Function GetLeafMostHeaderOfType ( _
headers As List(Of GridHeaderItem), _
headerType As ScorecardNodeTypes _
) As GridHeaderItem
'Usage
Dim headers As List(Of GridHeaderItem)
Dim headerType As ScorecardNodeTypes
Dim returnValue As GridHeaderItem
returnValue = GridHeaderUtils.GetLeafMostHeaderOfType(headers, _
headerType)
public static GridHeaderItem GetLeafMostHeaderOfType(
List<GridHeaderItem> headers,
ScorecardNodeTypes headerType
)
Parameters
headers
Type: System.Collections.Generic.List<GridHeaderItem>The list of headers.
headerType
Type: Microsoft.PerformancePoint.Scorecards.ScorecardNodeTypesThe header type or types to retrieve.
Return Value
Type: Microsoft.PerformancePoint.Scorecards.GridHeaderItem
The lowest leaf header of the specified type from the list, if found; otherwise, a null reference (Nothing in Visual Basic).
Exceptions
Exception | Condition |
---|---|
NullReferenceException | Thrown when headers is null. |
Remarks
The headerType parameter can be the bit-wise combination of multiple types.