Skip to main content

XRDesignPanel.GetService<T>() Method

Obtains the service object of the specified type from the designer host used by the XRDesignPanel.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v24.1.Extensions.dll

NuGet Package: DevExpress.Win.Reporting

Declaration

public T GetService<T>()

Type Parameters

Name
T

Returns

Type Description
T

A service object of the specified generic type, or a null reference (Nothing in Visual Basic) if there is no service object of this type.

Remarks

Use this method to enable your application objects to obtain a service of the XRDesignPanel, in order to employ methods of the service. The control implements the System.IServiceProvider interface, so you can tell it what type of service you wish to retrieve; and if a service is available, it is offered to the caller object.

See Also