RichEditDocumentServer.GetService<T>() Method
Gets the specified service.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v19.1.Core.dll
Declaration
Type Parameters
Name |
---|
T |
Returns
Type | Description |
---|---|
T | A service object of the specified type or null for reference types and zero for numeric value types if a service is not available. |
Remarks
Use this method to enable your application objects to obtain a service of the RichEditDocumentServer in order to employ methods of the service. The RichEditDocumentServer implements IServiceProvider interface, so you can tell it what type of service you wish to retrieve via the GetService<T> method; and if a service is available, it is offered to the caller object.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetService<T>() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.