ArcGIS Pro 2.7 API Reference Guide
LookupItem Method
Example 

ArcGIS.Desktop.Mapping Namespace > StyleHelper Class : LookupItem Method
The StyleProjectItem to search.
StyleItemType
The Key of the StyleItem that is to be retrieved.
Retrieves a specific style item from a style. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Shared Function LookupItem( _
   ByVal styleProjectItem As StyleProjectItem, _
   ByVal type As StyleItemType, _
   ByVal key As String _
) As StyleItem

Parameters

styleProjectItem
The StyleProjectItem to search.
type
StyleItemType
key
The Key of the StyleItem that is to be retrieved.

Return Value

Exceptions
ExceptionDescription
This method must be called within the lambda passed to QueuedTask.Run
Example
    public Task<SymbolStyleItem> GetSymbolFromStyleAsync(StyleProjectItem style, string key)
{
    return QueuedTask.Run(() =>
    {
    if (style == null)
        throw new System.ArgumentNullException();

    //Search for a specific point symbol in style
    SymbolStyleItem item = (SymbolStyleItem)style.LookupItem(StyleItemType.PointSymbol, key);
    return item;
    });
}
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

StyleHelper Class
StyleHelper Members