ActiveReports 12
FindResource Method

GrapeCity.ActiveReports.Viewer.Wpf.v12 Assembly > GrapeCity.ActiveReports.Viewer.Wpf Namespace > Viewer Class : FindResource Method
The key identifier for the requested resource.
Searches for a resource with the specified key, and throws an exception if the requested resource is not found.
Syntax
'Declaration
 
Public Function FindResource( _
   ByVal resourceKey As Object _
) As Object
public object FindResource( 
   object resourceKey
)

Parameters

resourceKey
The key identifier for the requested resource.

Return Value

The requested resource. If no resource with the provided key was found, an exception is thrown. An System.Windows.DependencyProperty.UnsetValue value might also be returned in the exception case.
Exceptions
ExceptionDescription
resourceKey was not found and an event handler does not exist for the System.Windows.Threading.Dispatcher.UnhandledException event.-or-resourceKey was not found and the System.Windows.Threading.DispatcherUnhandledExceptionEventArgs.Handled property is false in the System.Windows.Threading.Dispatcher.UnhandledException event.
resourceKey is null.
See Also

Reference

Viewer Class
Viewer Members