GetService Method

DocumentPageView.GetService Method (Type)

 

Gets the service object of the specified type.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected object GetService(
	Type serviceType
)

Parameters

serviceType
Type: System.Type

The type of service object to get.

Return Value

Type: System.Object

A service object of type serviceType, or null if there is no service object of type serviceType.

GetService returns any services that the DocumentPaginator provides if the DocumentPaginator implements IServiceProvider.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft