
system.windows.SystemFonts Maven / Gradle / Ivy
/*
* MIT License
*
* Copyright (c) 2023 MASES s.r.l.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**************************************************************************************
*
* This code was generated from a template using JCOReflector
*
* Manual changes to this file may cause unexpected behavior in your application.
* Manual changes to this file will be overwritten if the code is regenerated.
*
*************************************************************************************/
package system.windows;
import org.mases.jcobridge.*;
import org.mases.jcobridge.netreflection.*;
import java.util.ArrayList;
// Import section
import system.windows.FontStyle;
import system.windows.FontWeight;
import system.windows.media.FontFamily;
import system.windows.ResourceKey;
import system.windows.TextDecorationCollection;
/**
* The base .NET class managing System.Windows.SystemFonts, PresentationFramework, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.
*
*
* .NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.SystemFonts
*
*
* Powered by JCOBridge: more info at https://www.jcobridge.com
*/
public class SystemFonts extends NetObject {
/**
* Fully assembly qualified name: PresentationFramework, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
*/
public static final String assemblyFullName = "PresentationFramework, Version=6.0.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35";
/**
* Assembly name: PresentationFramework
*/
public static final String assemblyShortName = "PresentationFramework";
/**
* Qualified class name: System.Windows.SystemFonts
*/
public static final String className = "System.Windows.SystemFonts";
static JCOBridge bridge = JCOBridgeInstance.getInstance(assemblyFullName);
/**
* The type managed from JCOBridge. See {@link JCType}
*/
public static JCType classType = createType();
static JCEnum enumInstance = null;
JCObject classInstance = null;
static JCType createType() {
try {
String classToCreate = className + ", "
+ (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Creating %s", classToCreate);
JCType typeCreated = bridge.GetType(classToCreate);
if (JCOReflector.getDebug())
JCOReflector.writeLog("Created: %s",
(typeCreated != null) ? typeCreated.toString() : "Returned null value");
return typeCreated;
} catch (JCException e) {
JCOReflector.writeLog(e);
return null;
}
}
void addReference(String ref) throws Throwable {
try {
bridge.AddReference(ref);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
/**
* Internal constructor. Use with caution
*/
public SystemFonts(java.lang.Object instance) throws Throwable {
super(instance);
if (instance instanceof JCObject) {
classInstance = (JCObject) instance;
} else
throw new Exception("Cannot manage object, it is not a JCObject");
}
public String getJCOAssemblyName() {
return assemblyFullName;
}
public String getJCOClassName() {
return className;
}
public String getJCOObjectName() {
return className + ", " + (JCOReflector.getUseFullAssemblyName() ? assemblyFullName : assemblyShortName);
}
public java.lang.Object getJCOInstance() {
return classInstance;
}
public void setJCOInstance(JCObject instance) {
classInstance = instance;
super.setJCOInstance(classInstance);
}
public JCType getJCOType() {
return classType;
}
/**
* Try to cast the {@link IJCOBridgeReflected} instance into {@link SystemFonts}, a cast assert is made to check if types are compatible.
* @param from {@link IJCOBridgeReflected} instance to be casted
* @return {@link SystemFonts} instance
* @throws java.lang.Throwable in case of error during cast operation
*/
public static SystemFonts cast(IJCOBridgeReflected from) throws Throwable {
NetType.AssertCast(classType, from);
return new SystemFonts(from.getJCOInstance());
}
// Constructors section
public SystemFonts() throws Throwable {
}
// Methods section
// Properties section
public static double getCaptionFontSize() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OverflowException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (double)classType.Get("CaptionFontSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static double getIconFontSize() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OverflowException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (double)classType.Get("IconFontSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static double getMenuFontSize() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OverflowException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (double)classType.Get("MenuFontSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static double getMessageFontSize() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OverflowException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (double)classType.Get("MessageFontSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static double getSmallCaptionFontSize() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OverflowException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (double)classType.Get("SmallCaptionFontSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static double getStatusFontSize() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OverflowException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
return (double)classType.Get("StatusFontSize");
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontStyle getCaptionFontStyle() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontStyle");
return new FontStyle(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontStyle getIconFontStyle() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontStyle");
return new FontStyle(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontStyle getMenuFontStyle() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontStyle");
return new FontStyle(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontStyle getMessageFontStyle() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontStyle");
return new FontStyle(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontStyle getSmallCaptionFontStyle() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontStyle");
return new FontStyle(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontStyle getStatusFontStyle() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontStyle");
return new FontStyle(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontWeight getCaptionFontWeight() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.FormatException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontWeight");
return new FontWeight(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontWeight getIconFontWeight() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.FormatException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontWeight");
return new FontWeight(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontWeight getMenuFontWeight() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.FormatException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontWeight");
return new FontWeight(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontWeight getMessageFontWeight() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.FormatException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontWeight");
return new FontWeight(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontWeight getSmallCaptionFontWeight() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.FormatException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontWeight");
return new FontWeight(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontWeight getStatusFontWeight() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.OutOfMemoryException, system.runtime.interopservices.ExternalException, system.globalization.CultureNotFoundException, system.FormatException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontWeight");
return new FontWeight(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontFamily getCaptionFontFamily() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontFamily");
return new FontFamily(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontFamily getIconFontFamily() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontFamily");
return new FontFamily(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontFamily getMenuFontFamily() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontFamily");
return new FontFamily(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontFamily getMessageFontFamily() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontFamily");
return new FontFamily(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontFamily getSmallCaptionFontFamily() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontFamily");
return new FontFamily(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static FontFamily getStatusFontFamily() throws Throwable, system.ArgumentOutOfRangeException, system.IndexOutOfRangeException, system.PlatformNotSupportedException, system.NotSupportedException, system.ArgumentException, system.ArgumentNullException, system.ObjectDisposedException, system.InvalidOperationException, system.RankException, system.ArrayTypeMismatchException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontFamily");
return new FontFamily(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getCaptionFontFamilyKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontFamilyKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getCaptionFontSizeKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontSizeKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getCaptionFontStyleKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontStyleKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getCaptionFontTextDecorationsKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontTextDecorationsKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getCaptionFontWeightKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontWeightKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getIconFontFamilyKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontFamilyKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getIconFontSizeKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontSizeKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getIconFontStyleKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontStyleKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getIconFontTextDecorationsKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontTextDecorationsKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getIconFontWeightKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontWeightKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMenuFontFamilyKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontFamilyKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMenuFontSizeKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontSizeKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMenuFontStyleKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontStyleKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMenuFontTextDecorationsKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontTextDecorationsKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMenuFontWeightKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontWeightKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMessageFontFamilyKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontFamilyKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMessageFontSizeKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontSizeKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMessageFontStyleKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontStyleKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMessageFontTextDecorationsKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontTextDecorationsKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getMessageFontWeightKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontWeightKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getSmallCaptionFontFamilyKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontFamilyKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getSmallCaptionFontSizeKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontSizeKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getSmallCaptionFontStyleKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontStyleKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getSmallCaptionFontTextDecorationsKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontTextDecorationsKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getSmallCaptionFontWeightKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontWeightKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getStatusFontFamilyKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontFamilyKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getStatusFontSizeKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontSizeKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getStatusFontStyleKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontStyleKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getStatusFontTextDecorationsKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontTextDecorationsKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static ResourceKey getStatusFontWeightKey() throws Throwable {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontWeightKey");
return new ResourceKey(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static TextDecorationCollection getCaptionFontTextDecorations() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentNullException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.IndexOutOfRangeException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("CaptionFontTextDecorations");
return new TextDecorationCollection(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static TextDecorationCollection getIconFontTextDecorations() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentNullException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.IndexOutOfRangeException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("IconFontTextDecorations");
return new TextDecorationCollection(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static TextDecorationCollection getMenuFontTextDecorations() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentNullException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.IndexOutOfRangeException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MenuFontTextDecorations");
return new TextDecorationCollection(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static TextDecorationCollection getMessageFontTextDecorations() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentNullException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.IndexOutOfRangeException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("MessageFontTextDecorations");
return new TextDecorationCollection(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static TextDecorationCollection getSmallCaptionFontTextDecorations() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentNullException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.IndexOutOfRangeException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("SmallCaptionFontTextDecorations");
return new TextDecorationCollection(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
public static TextDecorationCollection getStatusFontTextDecorations() throws Throwable, system.ArgumentException, system.ArgumentOutOfRangeException, system.InvalidOperationException, system.ArgumentNullException, system.componentmodel.Win32Exception, system.globalization.CultureNotFoundException, system.PlatformNotSupportedException, system.IndexOutOfRangeException {
if (classType == null)
throw new UnsupportedOperationException("classType is null.");
try {
JCObject val = (JCObject)classType.Get("StatusFontTextDecorations");
return new TextDecorationCollection(val);
} catch (JCNativeException jcne) {
throw translateException(jcne);
}
}
// Instance Events section
}