Class VisualStyleRenderer
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.windows.forms.visualstyles.VisualStyleRenderer
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class VisualStyleRenderer extends NetObject
The base .NET class managing System.Windows.Forms.VisualStyles.VisualStyleRenderer, System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.VisualStyles.VisualStyleRenderer
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.String
assemblyShortName
Assembly name: System.Windows.Formsstatic java.lang.String
className
Qualified class name: System.Windows.Forms.VisualStyles.VisualStyleRendererstatic org.mases.jcobridge.JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description VisualStyleRenderer()
VisualStyleRenderer(java.lang.Object instance)
Internal constructor.VisualStyleRenderer(java.lang.String className, int part, int state)
VisualStyleRenderer(VisualStyleElement element)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VisualStyleRenderer
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoVisualStyleRenderer
, a cast assert is made to check if types are compatible.void
DrawBackground(IDeviceContext dc, Rectangle bounds)
void
DrawBackground(IDeviceContext dc, Rectangle bounds, Rectangle clipRectangle)
Rectangle
DrawEdge(IDeviceContext dc, Rectangle bounds, Edges edges, EdgeStyle style, EdgeEffects effects)
void
DrawImage(Graphics g, Rectangle bounds, Image image)
void
DrawImage(Graphics g, Rectangle bounds, ImageList imageList, int imageIndex)
void
DrawParentBackground(IDeviceContext dc, Rectangle bounds, Control childControl)
void
DrawText(IDeviceContext dc, Rectangle bounds, java.lang.String textToDraw)
void
DrawText(IDeviceContext dc, Rectangle bounds, java.lang.String textToDraw, boolean drawDisabled)
void
DrawText(IDeviceContext dc, Rectangle bounds, java.lang.String textToDraw, boolean drawDisabled, TextFormatFlags flags)
java.lang.String
get_Class()
Rectangle
GetBackgroundContentRectangle(IDeviceContext dc, Rectangle bounds)
Rectangle
GetBackgroundExtent(IDeviceContext dc, Rectangle contentBounds)
Region
GetBackgroundRegion(IDeviceContext dc, Rectangle bounds)
boolean
GetBoolean(BooleanProperty prop)
Color
GetColor(ColorProperty prop)
int
GetEnumValue(EnumProperty prop)
java.lang.String
GetFilename(FilenameProperty prop)
Font
GetFont(IDeviceContext dc, FontProperty prop)
int
GetInteger(IntegerProperty prop)
static boolean
getIsSupported()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectorg.mases.jcobridge.JCType
getJCOType()
Returns the instantiated class Typeint
getLastHResult()
Padding
GetMargins(IDeviceContext dc, MarginProperty prop)
int
getPart()
Size
GetPartSize(IDeviceContext dc, Rectangle bounds, ThemeSizeType type)
Size
GetPartSize(IDeviceContext dc, ThemeSizeType type)
Point
GetPoint(PointProperty prop)
int
getState()
java.lang.String
GetString(StringProperty prop)
Rectangle
GetTextExtent(IDeviceContext dc, java.lang.String textToDraw, TextFormatFlags flags)
Rectangle
GetTextExtent(IDeviceContext dc, Rectangle bounds, java.lang.String textToDraw, TextFormatFlags flags)
TextMetrics
GetTextMetrics(IDeviceContext dc)
HitTestCode
HitTestBackground(Graphics g, Rectangle backgroundRectangle, Region region, Point pt, HitTestOptions options)
HitTestCode
HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, Point pt, HitTestOptions options)
boolean
IsBackgroundPartiallyTransparent()
static boolean
IsElementDefined(VisualStyleElement element)
void
set_Class(java.lang.String Class)
void
setJCOInstance(org.mases.jcobridge.JCObject instance)
void
SetParameters(java.lang.String className, int part, int state)
void
SetParameters(VisualStyleElement element)
void
setPart(int Part)
void
setState(int State)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Windows.Forms- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Windows.Forms.VisualStyles.VisualStyleRenderer- See Also:
- Constant Field Values
-
classType
public static org.mases.jcobridge.JCType classType
The type managed from JCOBridge. SeeJCType
-
-
Constructor Detail
-
VisualStyleRenderer
public VisualStyleRenderer(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
VisualStyleRenderer
public VisualStyleRenderer() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
VisualStyleRenderer
public VisualStyleRenderer(java.lang.String className, int part, int state) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, KeyNotFoundException
-
VisualStyleRenderer
public VisualStyleRenderer(VisualStyleElement element) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, KeyNotFoundException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classNetObject
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classNetObject
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(org.mases.jcobridge.JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public org.mases.jcobridge.JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static VisualStyleRenderer cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoVisualStyleRenderer
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
VisualStyleRenderer
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetBoolean
public boolean GetBoolean(BooleanProperty prop) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, KeyNotFoundException
-
IsBackgroundPartiallyTransparent
public boolean IsBackgroundPartiallyTransparent() throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, KeyNotFoundException
-
IsElementDefined
public static boolean IsElementDefined(VisualStyleElement element) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, KeyNotFoundException
-
GetEnumValue
public int GetEnumValue(EnumProperty prop) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, KeyNotFoundException
-
GetInteger
public int GetInteger(IntegerProperty prop) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, KeyNotFoundException
-
GetColor
public Color GetColor(ColorProperty prop) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, KeyNotFoundException, NotSupportedException
-
GetFont
public Font GetFont(IDeviceContext dc, FontProperty prop) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
OutOfMemoryException
-
GetPoint
public Point GetPoint(PointProperty prop) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, KeyNotFoundException
-
DrawEdge
public Rectangle DrawEdge(IDeviceContext dc, Rectangle bounds, Edges edges, EdgeStyle style, EdgeEffects effects) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, InvalidEnumArgumentException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
FormatException
InvalidEnumArgumentException
KeyNotFoundException
-
GetBackgroundContentRectangle
public Rectangle GetBackgroundContentRectangle(IDeviceContext dc, Rectangle bounds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
GetBackgroundExtent
public Rectangle GetBackgroundExtent(IDeviceContext dc, Rectangle contentBounds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
GetTextExtent
public Rectangle GetTextExtent(IDeviceContext dc, Rectangle bounds, java.lang.String textToDraw, TextFormatFlags flags) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
GetTextExtent
public Rectangle GetTextExtent(IDeviceContext dc, java.lang.String textToDraw, TextFormatFlags flags) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
GetBackgroundRegion
public Region GetBackgroundRegion(IDeviceContext dc, Rectangle bounds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException, FormatException
-
GetPartSize
public Size GetPartSize(IDeviceContext dc, Rectangle bounds, ThemeSizeType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
KeyNotFoundException
-
GetPartSize
public Size GetPartSize(IDeviceContext dc, ThemeSizeType type) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, InvalidEnumArgumentException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
FormatException
InvalidEnumArgumentException
KeyNotFoundException
-
GetFilename
public java.lang.String GetFilename(FilenameProperty prop) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, KeyNotFoundException, NotSupportedException
-
GetString
public java.lang.String GetString(StringProperty prop) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ArgumentNullException, KeyNotFoundException, NotSupportedException
-
GetMargins
public Padding GetMargins(IDeviceContext dc, MarginProperty prop) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
PlatformNotSupportedException
NotSupportedException
ObjectDisposedException
InvalidOperationException
RankException
ArrayTypeMismatchException
ArgumentNullException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
KeyNotFoundException
-
HitTestBackground
public HitTestCode HitTestBackground(Graphics g, Rectangle backgroundRectangle, Region region, Point pt, HitTestOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException, KeyNotFoundException
-
HitTestBackground
public HitTestCode HitTestBackground(IDeviceContext dc, Rectangle backgroundRectangle, Point pt, HitTestOptions options) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
GetTextMetrics
public TextMetrics GetTextMetrics(IDeviceContext dc) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
DrawBackground
public void DrawBackground(IDeviceContext dc, Rectangle bounds, Rectangle clipRectangle) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
DrawBackground
public void DrawBackground(IDeviceContext dc, Rectangle bounds) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
DrawImage
public void DrawImage(Graphics g, Rectangle bounds, Image image) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, FormatException
-
DrawImage
public void DrawImage(Graphics g, Rectangle bounds, ImageList imageList, int imageIndex) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException, OverflowException
-
DrawParentBackground
public void DrawParentBackground(IDeviceContext dc, Rectangle bounds, Control childControl) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, Win32Exception
-
DrawText
public void DrawText(IDeviceContext dc, Rectangle bounds, java.lang.String textToDraw, boolean drawDisabled, TextFormatFlags flags) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
DrawText
public void DrawText(IDeviceContext dc, Rectangle bounds, java.lang.String textToDraw, boolean drawDisabled) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, KeyNotFoundException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
ArgumentNullException
KeyNotFoundException
-
DrawText
public void DrawText(IDeviceContext dc, Rectangle bounds, java.lang.String textToDraw) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, InvalidOperationException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
ArgumentNullException
InvalidOperationException
-
SetParameters
public void SetParameters(java.lang.String className, int part, int state) throws java.lang.Throwable, ArgumentOutOfRangeException, ArgumentException, IndexOutOfRangeException, PlatformNotSupportedException, ArgumentNullException, InvalidOperationException, KeyNotFoundException
-
SetParameters
public void SetParameters(VisualStyleElement element) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, KeyNotFoundException
-
getIsSupported
public static boolean getIsSupported() throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, InvalidOperationException, KeyNotFoundException, RankException, ArrayTypeMismatchException
-
getLastHResult
public int getLastHResult() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPart
public int getPart() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPart
public void setPart(int Part) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getState
public int getState() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setState
public void setState(int State) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
get_Class
public java.lang.String get_Class() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
set_Class
public void set_Class(java.lang.String Class) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-