Table of Contents

Class JCVisualWrapper

Namespace
MASES.JCOBridge.C2JBridge.J2CBridgeWrapper
Assembly
C2JBridgeDesktop.dll

JCVisualWrapper

public class JCVisualWrapper : IJCVisualWrapper
Inheritance
JCVisualWrapper
Implements
Inherited Members
Extension Methods

Constructors

JCVisualWrapper(string)

Ctor

public JCVisualWrapper(string objType)

Parameters

objType string

Properties

Application

Application

public static Application Application { get; }

Property Value

Application

ContainerHWND

ContainerHWND

public nint ContainerHWND { get; set; }

Property Value

IntPtr

IsDispatcherThread

IsDispatcherThread

public static bool IsDispatcherThread { get; }

Property Value

bool

IsWPF

True in case of WPF control

public bool IsWPF { get; }

Property Value

bool

MyHWND

MyHWND

public nint MyHWND { get; }

Property Value

IntPtr

ReferenceObject

The object referenced

public object ReferenceObject { get; }

Property Value

object

ThreadStarted

ThreadStarted

public static bool ThreadStarted { get; }

Property Value

bool

Methods

DispatcherExceptionLock()

DispatcherExceptionLock

public static void DispatcherExceptionLock()

DispatcherExceptionUnlock()

DispatcherExceptionUnlock

public static void DispatcherExceptionUnlock()

DispatcherGet(Type, object, string)

DispatcherGet

public static object DispatcherGet(Type targetType, object targetObject, string fieldName)

Parameters

targetType Type
targetObject object
fieldName string

Returns

object

DispatcherInvoke(Type, object, string, params object[])

DispatcherInvoke

public static object DispatcherInvoke(Type targetType, object targetObject, string methodName, params object[] param)

Parameters

targetType Type
targetObject object
methodName string
param object[]

Returns

object

DispatcherSet(Type, object, string, object)

DispatcherSet

public static void DispatcherSet(Type targetType, object targetObject, string fieldName, object value)

Parameters

targetType Type
targetObject object
fieldName string
value object

Get(string)

Gets a property from the visual object

public object Get(string fieldName)

Parameters

fieldName string

Returns

object

Invoke(string, params object[])

Invokes a method on the visual object

public object Invoke(string methodName, params object[] param)

Parameters

methodName string
param object[]

Returns

object

Lock()

Lock the visual wrapper

public void Lock()

PositionAndResize(bool, int, int, int, int)

Method used to propagate changes on visibility, position and size

public void PositionAndResize(bool isShowing, int x, int y, int width, int height)

Parameters

isShowing bool
x int
y int
width int
height int

Release()

Release the visual wrapper

public void Release()

ReleaseWindow(IJCVisualWrapper)

ReleaseWindow

public void ReleaseWindow(IJCVisualWrapper iwrapper)

Parameters

iwrapper IJCVisualWrapper

Set(string, object)

Sets a property on the visual object

public void Set(string fieldName, object value)

Parameters

fieldName string
value object

Unlock()

Unlock the visual wrapper

public void Unlock()