Creates a new instance of InteractiveService with the specified parameters.
public static InteractiveService Create(
object owner,
Control eventsSource,
Control eventsTarget
)
Public Shared Function Create(
ByVal owner As Object,
ByVal eventsSource As System.Windows.Forms.Control,
ByVal eventsTarget As System.Windows.Forms.Control
) As InteractiveService
public:
static InteractiveService^ Create(
Object^ owner,
System::Windows::Forms::Control^ eventsSource,
System::Windows::Forms::Control^ eventsTarget
)
owner
The owner of the service. Optional and can be null. This is not used by InteractiveService but can be
used by the application to pass any class and extra data. ImageViewer passes this
for this parameter in the
Create method.
eventsSource
The events source control (or HTML element in JavaScript). The events of this element will be subscribed to and converted from raw
mouse and touch to the common events mentioned above. Required and must be a valid control or HTML element on the page.
eventsTarget
The events target control (or HTML element in JavaScript). This is the target will be used to check if the event is
triggered on its surface and all coordinates will be translated based on its position. Required and must be a valid control or HTML element on the page.
The created InteractiveService object.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document