public class Unit extends ValueType
.NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Web.UI.WebControls.Unit
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.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
|
static java.lang.String |
assemblyShortName
Assembly name: System.Web
|
static java.lang.String |
className
Qualified class name: System.Web.UI.WebControls.Unit
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
Unit() |
Unit(double value) |
Unit(double value,
UnitType type) |
Unit(int value) |
Unit(java.lang.Object instance)
Internal constructor.
|
Unit(java.lang.String value) |
Unit(java.lang.String value,
CultureInfo culture) |
| Modifier and Type | Method and Description |
|---|---|
static Unit |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into Unit, a cast assert is made to check if types are compatible. |
boolean |
getIsEmpty() |
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
|
UnitType |
getType() |
double |
getValue() |
static Unit |
Parse(java.lang.String s) |
static Unit |
Parse(java.lang.String s,
CultureInfo culture) |
static Unit |
Percentage(double n) |
static Unit |
Pixel(int n) |
static Unit |
Point(int n) |
void |
setJCOInstance(JCObject instance) |
java.lang.String |
ToString(CultureInfo culture) |
java.lang.String |
ToString(IFormatProvider formatProvider) |
public static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public Unit()
throws java.lang.Throwable
java.lang.Throwablepublic Unit(double value)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic Unit(double value,
UnitType type)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic Unit(int value)
throws java.lang.Throwable,
ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic Unit(java.lang.Object instance)
throws java.lang.Throwable
java.lang.Throwablepublic Unit(java.lang.String value)
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
ArgumentOutOfRangeException,
NotImplementedException,
MissingManifestResourceException,
ObjectDisposedException,
FormatException,
NullReferenceException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionNullReferenceExceptionpublic Unit(java.lang.String value,
CultureInfo culture)
throws java.lang.Throwable,
ArgumentNullException,
TypeLoadException,
ArgumentException,
InvalidOperationException,
MissingMethodException,
TargetInvocationException,
NotSupportedException,
CultureNotFoundException,
NotImplementedException,
ArgumentOutOfRangeException,
MissingManifestResourceException,
ObjectDisposedException,
IndexOutOfRangeException,
FormatException,
NullReferenceException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionNotImplementedExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionIndexOutOfRangeExceptionFormatExceptionNullReferenceExceptionpublic static Unit cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into Unit, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedUnit instancejava.lang.Throwable - in case of error during cast operationpublic boolean getIsEmpty()
throws java.lang.Throwable
java.lang.Throwablepublic java.lang.String getJCOAssemblyName()
IJCOBridgeReflectedgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class ValueTypeString representing the Fullname of reflected Assemblypublic java.lang.String getJCOClassName()
IJCOBridgeReflectedgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class ValueTypeString representing the Fullname of reflected Classpublic java.lang.Object getJCOInstance()
IJCOBridgeReflectedgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class ValueTypeObject representing the CLR instance of the instantiated Classpublic java.lang.String getJCOObjectName()
IJCOBridgeReflectedgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class ValueTypeString representing the name used to allocated the object
in CLR contextpublic JCType getJCOType()
IJCOBridgeReflectedgetJCOType in interface IJCOBridgeReflectedgetJCOType in class ValueTypeJCType representing the CLR Type of the instantiated Classpublic UnitType getType() throws java.lang.Throwable
java.lang.Throwablepublic double getValue()
throws java.lang.Throwable
java.lang.Throwablepublic static Unit Parse(java.lang.String s) throws java.lang.Throwable, ArgumentNullException, TypeLoadException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, NotSupportedException, CultureNotFoundException, ArgumentOutOfRangeException, NotImplementedException, MissingManifestResourceException, ObjectDisposedException, FormatException, NullReferenceException
java.lang.ThrowableArgumentNullExceptionTypeLoadExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionNotSupportedExceptionCultureNotFoundExceptionArgumentOutOfRangeExceptionNotImplementedExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionNullReferenceExceptionpublic static Unit Parse(java.lang.String s, CultureInfo culture) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, IndexOutOfRangeException, NotImplementedException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, FormatException, NullReferenceException, NotSupportedException
java.lang.ThrowableArgumentNullExceptionArgumentExceptionInvalidOperationExceptionMissingMethodExceptionTargetInvocationExceptionCultureNotFoundExceptionIndexOutOfRangeExceptionNotImplementedExceptionArgumentOutOfRangeExceptionMissingManifestResourceExceptionObjectDisposedExceptionFormatExceptionNullReferenceExceptionNotSupportedExceptionpublic static Unit Percentage(double n) throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic static Unit Pixel(int n) throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic static Unit Point(int n) throws java.lang.Throwable, ArgumentOutOfRangeException
java.lang.ThrowableArgumentOutOfRangeExceptionpublic void setJCOInstance(JCObject instance)
setJCOInstance in class ValueTypepublic java.lang.String ToString(CultureInfo culture) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, ArgumentOutOfRangeException, IndexOutOfRangeException
public java.lang.String ToString(IFormatProvider formatProvider) throws java.lang.Throwable, ArgumentNullException, ArgumentException, InvalidOperationException, MissingMethodException, TargetInvocationException, CultureNotFoundException, ArgumentOutOfRangeException, IndexOutOfRangeException