Back to Devexpress

SpreadsheetControl.ReplaceService<T>(T) Method

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcontrol-dot-replaceservice-1-x28-0-x29.md

latest1.3 KB
Original Source

SpreadsheetControl.ReplaceService<T>(T) Method

Performs a service substitution.

Namespace : DevExpress.Xpf.Spreadsheet

Assembly : DevExpress.Xpf.Spreadsheet.v25.2.dll

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public T ReplaceService<T>(
    T newService
)
    where T : class
vb
Public Function ReplaceService(Of T As Class)(
    newService As T
) As T

Parameters

NameTypeDescription
newServiceT

A service of the specified type that will be registered.

|

Type Parameters

Name
T

Returns

TypeDescription
T

Previously registered service of the specified type, or null ( Nothing in Visual Basic) if the service does not exist.

|

See Also

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.Xpf.Spreadsheet Namespace