Version

FromName(String,String) Method

Returns the style manager with the specified name.
Syntax
'Declaration
 
Public Overloads Shared Function FromName( _
   ByVal styleName As String, _
   ByVal styleLibraryName As String _
) As StyleManager
public static StyleManager FromName( 
   string styleName,
   string styleLibraryName
)

Parameters

styleName
The name of the style whose associated stylemanager should be returned or null to obtain the default style manager.
styleLibraryName
The name of the loaded library from which the stylemanager should be returned or null to obtain the style manager from the default library.

Return Value

A StyleManager instance that represents the specified name and library.
Remarks

Note: If the specified style name does not exist or if styleName is null, a stylemanager that represents the default style will be used.

Note: You must use the returned StyleManager from the thread on which you retreived it.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also