DocumentPageView.GetService Method (Type)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets the service object of the specified type.

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

protected object GetService(
	Type 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