public class HwndSource extends PresentationSource implements java.lang.AutoCloseable
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Windows.Interop.HwndSource
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: PresentationCore, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
|
static java.lang.String |
assemblyShortName
Assembly name: PresentationCore
|
static java.lang.String |
className
Qualified class name: System.Windows.Interop.HwndSource
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
HwndSource() |
HwndSource(HwndSourceParameters parameters)
Initializes a new instance by invoking the .NET constructor.
|
HwndSource(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAutoResized(AutoResizedEventHandler handler)
Invokes the .NET member addAutoResized.
|
void |
addDisposed(EventHandler handler)
Invokes the .NET member addDisposed.
|
void |
addDpiChanged(HwndDpiChangedEventHandler handler)
Invokes the .NET member addDpiChanged.
|
void |
addSizeToContentChanged(EventHandler handler)
Invokes the .NET member addSizeToContentChanged.
|
static HwndSource |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into HwndSource, a cast assert is made to check if types are compatible. |
void |
close() |
HandleRef |
CreateHandleRef()
Invokes the .NET member CreateHandleRef.
|
void |
Dispose()
Invokes the .NET member Dispose.
|
boolean |
getAcquireHwndFocusInMenuMode()
Gets the value of the .NET property AcquireHwndFocusInMenuMode.
|
IEnumerable_1 |
getChildKeyboardInputSinks()
Gets the value of the .NET property ChildKeyboardInputSinks.
|
HwndTarget |
getCompositionTargetNewHwndSource()
Gets the value of the .NET property CompositionTargetNewHwndSource.
|
static boolean |
getDefaultAcquireHwndFocusInMenuMode()
Gets the value of the .NET property DefaultAcquireHwndFocusInMenuMode.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
RestoreFocusMode |
getRestoreFocusMode()
Gets the value of the .NET property RestoreFocusMode.
|
SizeToContent |
getSizeToContent()
Gets the value of the .NET property SizeToContent.
|
boolean |
getUsesPerPixelOpacity()
Gets the value of the .NET property UsesPerPixelOpacity.
|
void |
removeAutoResized(AutoResizedEventHandler handler)
Invokes the .NET member removeAutoResized.
|
void |
removeDisposed(EventHandler handler)
Invokes the .NET member removeDisposed.
|
void |
removeDpiChanged(HwndDpiChangedEventHandler handler)
Invokes the .NET member removeDpiChanged.
|
void |
removeSizeToContentChanged(EventHandler handler)
Invokes the .NET member removeSizeToContentChanged.
|
static void |
setDefaultAcquireHwndFocusInMenuMode(boolean DefaultAcquireHwndFocusInMenuMode)
Sets the value of the .NET property DefaultAcquireHwndFocusInMenuMode.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setSizeToContent(SizeToContent SizeToContent)
Sets the value of the .NET property SizeToContent.
|
addContentRendered, AddSourceChangedHandler, FromDependencyObject, FromVisual, getCompositionTarget, getCurrentSources, getIsDisposed, getRootVisual, removeContentRendered, RemoveSourceChangedHandler, setRootVisualCheckAccess, getDispatcher, VerifyAccesspublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public HwndSource()
throws java.lang.Throwable
java.lang.Throwablepublic HwndSource(HwndSourceParameters parameters) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentException, ArgumentNullException, ArgumentOutOfRangeException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, InvalidOperationException, InvalidEnumArgumentException, Win32Exception, NotSupportedException, NotImplementedException, ObjectDisposedException, MissingMethodException, TargetInvocationException, AccessViolationException, OverflowException, KeyNotFoundException, ThreadStateException, SecurityException, IOException
parameters - the argument of type HwndSourceParametersjava.lang.Throwable - if the .NET constructor failsPlatformNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itInvalidOperationException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itWin32Exception - if the .NET member raises itNotSupportedException - if the .NET member raises itNotImplementedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itAccessViolationException - if the .NET member raises itOverflowException - if the .NET member raises itKeyNotFoundException - if the .NET member raises itThreadStateException - if the .NET member raises itSecurityException - if the .NET member raises itIOException - if the .NET member raises itpublic HwndSource(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void addAutoResized(AutoResizedEventHandler handler) throws java.lang.Throwable
handler - the argument of type AutoResizedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addDisposed(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addDpiChanged(HwndDpiChangedEventHandler handler) throws java.lang.Throwable
handler - the argument of type HwndDpiChangedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addSizeToContentChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static HwndSource cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into HwndSource, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedHwndSource instancejava.lang.Throwable - in case of error during cast operationpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic HandleRef CreateHandleRef() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Dispose()
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
InvalidOperationException,
PlatformNotSupportedException,
ObjectDisposedException,
Win32Exception,
InvalidEnumArgumentException,
ArgumentOutOfRangeException,
NotImplementedException,
IndexOutOfRangeException,
RankException,
ArrayTypeMismatchException,
ThreadStateException,
SystemException
java.lang.Throwable - if the call fails in the bridge or in the CLRNotSupportedException - if the .NET member raises itArgumentException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itWin32Exception - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itNotImplementedException - if the .NET member raises itIndexOutOfRangeException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itThreadStateException - if the .NET member raises itSystemException - if the .NET member raises itpublic boolean getAcquireHwndFocusInMenuMode()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic IEnumerable_1 getChildKeyboardInputSinks() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic HwndTarget getCompositionTargetNewHwndSource() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic static boolean getDefaultAcquireHwndFocusInMenuMode()
throws java.lang.Throwable,
ArgumentException,
ArgumentOutOfRangeException,
ArgumentNullException,
InvalidOperationException,
PlatformNotSupportedException,
ArrayTypeMismatchException,
NotSupportedException,
ObjectDisposedException,
RankException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArgumentNullException - if the .NET member raises itInvalidOperationException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itRankException - if the .NET member raises itpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class PresentationSourcepublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class PresentationSourcepublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class PresentationSourcenull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class PresentationSourcepublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class PresentationSourcepublic RestoreFocusMode getRestoreFocusMode() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic SizeToContent getSizeToContent() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic boolean getUsesPerPixelOpacity()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
PlatformNotSupportedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
InvalidOperationException,
ObjectDisposedException
java.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itpublic void removeAutoResized(AutoResizedEventHandler handler) throws java.lang.Throwable
handler - the argument of type AutoResizedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeDisposed(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeDpiChanged(HwndDpiChangedEventHandler handler) throws java.lang.Throwable
handler - the argument of type HwndDpiChangedEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeSizeToContentChanged(EventHandler handler) throws java.lang.Throwable
handler - the argument of type EventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static void setDefaultAcquireHwndFocusInMenuMode(boolean DefaultAcquireHwndFocusInMenuMode)
throws java.lang.Throwable
DefaultAcquireHwndFocusInMenuMode - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class PresentationSourceinstance - the new underlying objectpublic void setSizeToContent(SizeToContent SizeToContent) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, NotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, ObjectDisposedException, InvalidEnumArgumentException, RankException, ArrayTypeMismatchException, Win32Exception, NotImplementedException
SizeToContent - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentNullException - if the .NET member raises itArgumentException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itCultureNotFoundException - if the .NET member raises itInvalidOperationException - if the .NET member raises itObjectDisposedException - if the .NET member raises itInvalidEnumArgumentException - if the .NET member raises itRankException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itWin32Exception - if the .NET member raises itNotImplementedException - if the .NET member raises it