Back to Devexpress

IRichEditDocumentServer.GetService<T>() Method

officefileapi-devexpress-dot-xtrarichedit-dot-iricheditdocumentserver-dot-getservice-1.md

latest1.6 KB
Original Source

IRichEditDocumentServer.GetService<T>() Method

Gets service of the specified type.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
T GetService<T>()
    where T : class
vb
Function GetService(Of T As Class) As T

Type Parameters

NameDescription
T

The service type.

|

Returns

TypeDescription
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 obtain a service exposed by the RichEditDocumentServer in order to employ methods of the service. The RichEditDocumentServer implements System.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.

See Also

IRichEditDocumentServer Interface

IRichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace