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.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Drawing.Common
|
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) |
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, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public Font(FontFamily family, Single emSize, FontStyle style) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public Font(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, boolean gdiVerticalFont) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public Font(FontFamily family, Single emSize, GraphicsUnit unit) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public Font(Font prototype, FontStyle newStyle) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public Font(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Font(java.lang.String familyName,
Single emSize)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
ArgumentNullException,
OutOfMemoryException
public Font(java.lang.String familyName,
Single emSize,
FontStyle style)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
ArgumentNullException,
OutOfMemoryException
public Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
ArgumentNullException,
OutOfMemoryException
public Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
ArgumentNullException,
OutOfMemoryException
public Font(java.lang.String familyName,
Single emSize,
FontStyle style,
GraphicsUnit unit,
byte gdiCharSet,
boolean gdiVerticalFont)
throws java.lang.Throwable,
NotSupportedException,
ArgumentException,
PlatformNotSupportedException,
ArgumentNullException,
ArgumentOutOfRangeException,
InvalidOperationException,
FormatException,
OutOfMemoryException
public Font(java.lang.String familyName,
Single emSize,
GraphicsUnit unit)
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
IndexOutOfRangeException,
PlatformNotSupportedException,
FormatException,
ArgumentNullException,
OutOfMemoryException
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, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void Dispose()
throws java.lang.Throwable,
ArgumentException,
NotSupportedException,
InvalidOperationException,
ArgumentOutOfRangeException,
ArgumentNullException
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionpublic static Font FromLogFont(NetObject lf) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, OutOfMemoryException
public 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,
InvalidOperationException,
PlatformNotSupportedException,
ArgumentOutOfRangeException,
FormatException,
ArgumentNullException
public Single GetHeight() throws java.lang.Throwable, ArgumentException, ObjectDisposedException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
public Single GetHeight(Graphics graphics) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException
public Single GetHeight(Single dpi) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, NotSupportedException, InvalidOperationException, IndexOutOfRangeException, FormatException
public 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,
ArgumentException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
CultureNotFoundException,
PlatformNotSupportedException,
NotSupportedException,
IndexOutOfRangeException,
ObjectDisposedException,
InvalidOperationException,
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, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
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, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, IndexOutOfRangeException, FormatException, ArgumentNullException
public void ToLogFont(NetObject logFont, Graphics graphics) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, FormatException