public class Font extends MarshalByRefObject implements ISerializable, java.lang.AutoCloseable
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Font
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: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Drawing
|
static java.lang.String |
className
Qualified class name: System.Drawing.Font
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Font() |
Font(FontFamily family,
Single emSize) |
Font(FontFamily family,
Single emSize,
FontStyle style) |
Font(FontFamily family,
Single emSize,
FontStyle style,
GraphicsUnit unit) |
Font(FontFamily family,
Single emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet) |
Font(FontFamily family,
Single emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet,
boolean gdiVerticalFont) |
Font(FontFamily family,
Single emSize,
GraphicsUnit unit) |
Font(Font prototype,
FontStyle newStyle) |
Font(java.lang.Object instance)
Internal constructor.
|
Font(java.lang.String familyName,
Single emSize) |
Font(java.lang.String familyName,
Single emSize,
FontStyle style) |
Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit) |
Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet) |
Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet,
boolean gdiVerticalFont) |
Font(java.lang.String familyName,
Single emSize,
GraphicsUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
static Font |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Font, a cast assert is made to check if types are compatible. |
NetObject |
Clone() |
void |
close() |
void |
Dispose() |
static Font |
FromLogFont(NetObject lf) |
boolean |
getBold() |
FontFamily |
getFontFamily() |
byte |
getGdiCharSet() |
boolean |
getGdiVerticalFont() |
int |
getHeight() |
Single |
GetHeight() |
Single |
GetHeight(Graphics graphics) |
Single |
GetHeight(Single dpi) |
boolean |
getIsSystemFont() |
boolean |
getItalic() |
java.lang.String |
getJCOAssemblyName()
Returns the reflected Assembly name
|
java.lang.String |
getJCOClassName()
Returns the reflected Class name
|
java.lang.Object |
getJCOInstance()
Returns the instantiated class
|
java.lang.String |
getJCOObjectName()
Returns the reflected Class name used to build the object
|
JCType |
getJCOType()
Returns the instantiated class Type
|
java.lang.String |
getName() |
java.lang.String |
getOriginalFontName() |
Single |
getSize() |
Single |
getSizeInPoints() |
boolean |
getStrikeout() |
FontStyle |
getStyle() |
java.lang.String |
getSystemFontName() |
boolean |
getUnderline() |
GraphicsUnit |
getUnit() |
void |
setJCOInstance(JCObject instance) |
void |
ToLogFont(NetObject logFont) |
void |
ToLogFont(NetObject logFont,
Graphics graphics) |
CreateObjRef, GetLifetimeService, InitializeLifetimeServiceEquals, Equals, GetHashCode, GetType, hashCode, toString, ToStringGetObjectData, ToISerializablepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Font()
throws java.lang.Throwable
java.lang.Throwablepublic Font(FontFamily family, Single emSize) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic Font(FontFamily family, Single emSize, FontStyle style) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic Font(FontFamily family, Single emSize, GraphicsUnit unit) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic Font(Font prototype, FontStyle newStyle) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic Font(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Font(java.lang.String familyName,
Single emSize)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
SecurityException
public Font(java.lang.String familyName,
Single emSize,
FontStyle style)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
SecurityException
public Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
SecurityException
public Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
SecurityException
public Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet,
boolean gdiVerticalFont)
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotImplementedException,
NotSupportedException,
ArgumentOutOfRangeException,
CultureNotFoundException,
MissingManifestResourceException,
ObjectDisposedException,
FormatException,
SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionNotSupportedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionSecurityExceptionpublic Font(java.lang.String familyName,
Single emSize,
GraphicsUnit unit)
throws java.lang.Throwable,
ArgumentOutOfRangeException,
ArgumentNullException,
ArgumentException,
MissingManifestResourceException,
ObjectDisposedException,
InvalidOperationException,
IndexOutOfRangeException,
SecurityException
public static Font cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Font, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedFont instancejava.lang.Throwable - in case of error during cast operationpublic NetObject Clone() throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionSecurityExceptionpublic void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentNullException
java.lang.ThrowableArgumentNullExceptionpublic static Font FromLogFont(NetObject lf) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, AbandonedMutexException, ArgumentNullException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, IndexOutOfRangeException, SecurityException
java.lang.ThrowableArgumentExceptionObjectDisposedExceptionAbandonedMutexExceptionArgumentNullExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionIndexOutOfRangeExceptionSecurityExceptionpublic boolean getBold()
throws java.lang.Throwable
java.lang.Throwablepublic FontFamily getFontFamily() throws java.lang.Throwable
java.lang.Throwablepublic byte getGdiCharSet()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getGdiVerticalFont()
throws java.lang.Throwable
java.lang.Throwablepublic int getHeight()
throws java.lang.Throwable,
ArgumentException,
ObjectDisposedException,
AbandonedMutexException,
ArgumentNullException,
NotImplementedException,
MissingManifestResourceException,
InvalidOperationException,
ArgumentOutOfRangeException,
FormatException
public Single GetHeight() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, AbandonedMutexException, ArgumentNullException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, InvalidOperationException
public Single GetHeight(Graphics graphics) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionpublic Single GetHeight(Single dpi) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionpublic boolean getIsSystemFont()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getItalic()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in interface ISerializablegetJCOAssemblyName in class MarshalByRefObjectString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in interface ISerializablegetJCOClassName in class MarshalByRefObjectString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in interface ISerializablegetJCOInstance in class MarshalByRefObjectObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in interface ISerializablegetJCOObjectName in class MarshalByRefObjectString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in interface ISerializablegetJCOType in class MarshalByRefObjectJCType representing the CLR Type of the instantiated Classpublic java.lang.String getName()
throws java.lang.Throwable,
ArgumentNullException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
ArgumentOutOfRangeException,
NotImplementedException,
MissingManifestResourceException,
ObjectDisposedException,
FormatException
public java.lang.String getOriginalFontName()
throws java.lang.Throwable
java.lang.Throwablepublic Single getSize() throws java.lang.Throwable
java.lang.Throwablepublic Single getSizeInPoints() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, AbandonedMutexException, ArgumentNullException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, InvalidOperationException
public boolean getStrikeout()
throws java.lang.Throwable
java.lang.Throwablepublic FontStyle getStyle() throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getSystemFontName()
throws java.lang.Throwable
java.lang.Throwablepublic boolean getUnderline()
throws java.lang.Throwable
java.lang.Throwablepublic GraphicsUnit getUnit() throws java.lang.Throwable
java.lang.Throwablepublic void setJCOInstance(JCObject instance)
setJCOInstance in class MarshalByRefObjectpublic void ToLogFont(NetObject logFont) throws java.lang.Throwable, ArgumentException, ObjectDisposedException, AbandonedMutexException, ArgumentNullException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, InvalidOperationException
public void ToLogFont(NetObject logFont, Graphics graphics) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotImplementedException, ArgumentOutOfRangeException, CultureNotFoundException, MissingManifestResourceException, ObjectDisposedException, IndexOutOfRangeException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotImplementedExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeException