Package system.windows.forms
Class Label
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,IDropTarget
- Direct Known Subclasses:
LinkLabel
public class Label extends Control
The base .NET class managing System.Windows.Forms.Label, System.Windows.Forms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.Label
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=8.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.Labelstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
-
Methods inherited from class system.windows.forms.Control
addBackColorChanged, addBindingContextChanged, addCausesValidationChanged, addChangeUICues, addClick, addClientSizeChanged, addContextMenuStripChanged, addControlAdded, addControlRemoved, addCursorChanged, addDataContextChanged, addDockChanged, addDoubleClick, addDpiChangedAfterParent, addDpiChangedBeforeParent, addDragDrop, addDragEnter, addDragLeave, addDragOver, addEnabledChanged, addEnter, addFontChanged, addForeColorChanged, addGiveFeedback, addGotFocus, addHandleCreated, addHandleDestroyed, addHelpRequested, addInvalidated, addLayout, addLeave, addLocationChanged, addLostFocus, addMarginChanged, addMouseCaptureChanged, addMouseClick, addMouseDoubleClick, addMouseDown, addMouseEnter, addMouseHover, addMouseLeave, addMouseMove, addMouseUp, addMouseWheel, addMove, addPaddingChanged, addPaint, addParentChanged, addPreviewKeyDown, addQueryAccessibilityHelp, addQueryContinueDrag, addRegionChanged, addResize, addRightToLeftChanged, addSizeChanged, addStyleChanged, addSystemColorsChanged, addTabIndexChanged, addTextChanged, addValidated, addValidating, addVisibleChanged, BeginInvoke, BringToFront, Contains, CreateControl, CreateGraphics, DoDragDrop, DoDragDrop, DrawToBitmap, EndInvoke, FindForm, Focus, getAccessibilityObject, getAccessibleDefaultActionDescription, getAccessibleDescription, getAccessibleName, getAccessibleRole, getAllowDrop, getAnchor, getAutoScrollOffset, getAutoSize, getBackColor, getBackgroundImage, getBackgroundImageLayout, getBindingContext, getBottom, getBounds, getCanFocus, getCanSelect, getCapture, getCausesValidation, getCheckForIllegalCrossThreadCalls, GetChildAtPoint, GetChildAtPoint, getClientRectangle, getClientSize, getCompanyName, GetContainerControl, getContainsFocus, getContextMenuStrip, getCreated, getCursor, getDataBindings, getDataContext, getDefaultBackColor, getDefaultFont, getDefaultForeColor, getDeviceDpi, getDisplayRectangle, getDisposing, getDock, getEnabled, getFocused, getFont, getForeColor, getHasChildren, getHeight, getInvokeRequired, getIsAccessible, getIsAncestorSiteInDesignMode, getIsDisposed, getIsHandleCreated, getIsMirrored, getLayoutEngine, getLeft, getLocation, getMargin, getMaximumSize, getMinimumSize, getModifierKeys, getMouseButtons, getMousePosition, getName, GetNextControl, getPadding, getParent, getPreferredSize, getProductName, getProductVersion, getRecreatingHandle, getRegion, getRight, getRightToLeft, getSize, getTabIndex, getTag, getText, getTop, getTopLevelControl, getUseWaitCursor, getVisible, getWidth, getWindowTarget, Hide, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invoke, IsKeyLocked, IsMnemonic, LogicalToDeviceUnits, LogicalToDeviceUnits, PerformLayout, PerformLayout, PointToClient, PointToScreen, PreProcessControlMessage, PreProcessMessage, RectangleToClient, RectangleToScreen, Refresh, removeBackColorChanged, removeBindingContextChanged, removeCausesValidationChanged, removeChangeUICues, removeClick, removeClientSizeChanged, removeContextMenuStripChanged, removeControlAdded, removeControlRemoved, removeCursorChanged, removeDataContextChanged, removeDockChanged, removeDoubleClick, removeDpiChangedAfterParent, removeDpiChangedBeforeParent, removeDragDrop, removeDragEnter, removeDragLeave, removeDragOver, removeEnabledChanged, removeEnter, removeFontChanged, removeForeColorChanged, removeGiveFeedback, removeGotFocus, removeHandleCreated, removeHandleDestroyed, removeHelpRequested, removeInvalidated, removeLayout, removeLeave, removeLocationChanged, removeLostFocus, removeMarginChanged, removeMouseCaptureChanged, removeMouseClick, removeMouseDoubleClick, removeMouseDown, removeMouseEnter, removeMouseHover, removeMouseLeave, removeMouseMove, removeMouseUp, removeMouseWheel, removeMove, removePaddingChanged, removePaint, removeParentChanged, removePreviewKeyDown, removeQueryAccessibilityHelp, removeQueryContinueDrag, removeRegionChanged, removeResize, removeRightToLeftChanged, removeSizeChanged, removeStyleChanged, removeSystemColorsChanged, removeTabIndexChanged, removeTextChanged, removeValidated, removeValidating, removeVisibleChanged, ResetBackColor, ResetBindings, ResetCursor, ResetFont, ResetForeColor, ResetImeMode, ResetRightToLeft, ResetText, ResumeLayout, ResumeLayout, Scale, Scale, Scale, ScaleBitmapLogicalToDevice, Select, SelectNextControl, SendToBack, setAccessibleDefaultActionDescription, setAccessibleDescription, setAccessibleName, setAccessibleRole, setAllowDrop, setAnchor, setAutoScrollOffset, setAutoSize, setBackColor, setBackgroundImage, setBackgroundImageLayout, setBindingContext, setBounds, SetBounds, SetBounds, setCapture, setCausesValidation, setCheckForIllegalCrossThreadCalls, setClientSize, setContextMenuStrip, setCursor, setDataContext, setDock, setEnabled, setFont, setForeColor, setHeight, setIsAccessible, setLeft, setLocation, setMargin, setMaximumSize, setMinimumSize, setName, setPadding, setParent, setRegion, setRightToLeft, setSize, setTabIndex, setTag, setText, setTop, setUseWaitCursor, setVisible, setWidth, setWindowTarget, Show, SuspendLayout, Update
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toString, ToString
-
Methods inherited from interface system.windows.forms.IDropTarget
OnDragDrop, OnDragEnter, OnDragLeave, OnDragOver
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Windows.Forms, Version=8.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.Label- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Label
public Label(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
Label
public Label() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException, ArgumentOutOfRangeException, OutOfMemoryException, ObjectDisposedException, FormatException, Win32Exception
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIDropTarget
- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classControl
- 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 interfaceIDropTarget
- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classControl
- 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 interfaceIDropTarget
- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classControl
- 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 interfaceIDropTarget
- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classControl
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classControl
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIDropTarget
- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classControl
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static Label cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoLabel
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
Label
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
GetPreferredSize
public Size GetPreferredSize(Size proposedSize) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException
- Overrides:
GetPreferredSize
in classControl
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
RankException
ArgumentOutOfRangeException
IndexOutOfRangeException
ArgumentException
ArrayTypeMismatchException
InvalidOperationException
-
getAutoEllipsis
public boolean getAutoEllipsis() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAutoEllipsis
public void setAutoEllipsis(boolean AutoEllipsis) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentOutOfRangeException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentNullException, FormatException
-
getTabStop
public boolean getTabStop() throws java.lang.Throwable
- Overrides:
getTabStop
in classControl
- Throws:
java.lang.Throwable
-
setTabStop
public void setTabStop(boolean TabStop) throws java.lang.Throwable
- Overrides:
setTabStop
in classControl
- Throws:
java.lang.Throwable
-
getUseCompatibleTextRendering
public boolean getUseCompatibleTextRendering() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUseCompatibleTextRendering
public void setUseCompatibleTextRendering(boolean UseCompatibleTextRendering) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, NotSupportedException, Win32Exception, InvalidOperationException
-
getUseMnemonic
public boolean getUseMnemonic() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUseMnemonic
public void setUseMnemonic(boolean UseMnemonic) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException, ArgumentOutOfRangeException, NotSupportedException, Win32Exception
-
getImageIndex
public int getImageIndex() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException
-
setImageIndex
public void setImageIndex(int ImageIndex) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, ObjectDisposedException, RankException, IndexOutOfRangeException, ArrayTypeMismatchException, NotSupportedException
-
getPreferredHeight
public int getPreferredHeight() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException
-
getPreferredWidth
public int getPreferredWidth() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException
-
getImageAlign
public ContentAlignment getImageAlign() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setImageAlign
public void setImageAlign(ContentAlignment ImageAlign) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException, RankException, ArrayTypeMismatchException, NotSupportedException
-
getTextAlign
public ContentAlignment getTextAlign() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTextAlign
public void setTextAlign(ContentAlignment TextAlign) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException, RankException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, Win32Exception, OutOfMemoryException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
ArgumentNullException
ArgumentOutOfRangeException
IndexOutOfRangeException
PlatformNotSupportedException
FormatException
InvalidEnumArgumentException
RankException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
Win32Exception
OutOfMemoryException
-
getImage
public Image getImage() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException, CultureNotFoundException, ObjectDisposedException, FormatException, OverflowException, NotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
RankException
ArgumentOutOfRangeException
IndexOutOfRangeException
ArgumentException
ArrayTypeMismatchException
InvalidOperationException
CultureNotFoundException
ObjectDisposedException
FormatException
OverflowException
NotSupportedException
-
setImage
public void setImage(Image Image) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException, CultureNotFoundException, ObjectDisposedException, OverflowException, NotSupportedException, OutOfMemoryException, AbandonedMutexException, InvalidAsynchronousStateException, MulticastNotSupportedException
- Throws:
java.lang.Throwable
PlatformNotSupportedException
ArgumentNullException
RankException
ArgumentOutOfRangeException
IndexOutOfRangeException
ArgumentException
ArrayTypeMismatchException
InvalidOperationException
CultureNotFoundException
ObjectDisposedException
OverflowException
NotSupportedException
OutOfMemoryException
AbandonedMutexException
InvalidAsynchronousStateException
MulticastNotSupportedException
-
getImageKey
public java.lang.String getImageKey() throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException
-
setImageKey
public void setImageKey(java.lang.String ImageKey) throws java.lang.Throwable, PlatformNotSupportedException, ArgumentNullException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, NotSupportedException, FormatException
-
getLiveSetting
public AutomationLiveSetting getLiveSetting() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setLiveSetting
public void setLiveSetting(AutomationLiveSetting LiveSetting) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException
-
getBorderStyle
public BorderStyle getBorderStyle() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setBorderStyle
public void setBorderStyle(BorderStyle BorderStyle) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException, RankException, ArrayTypeMismatchException, Win32Exception, NotSupportedException
-
getFlatStyle
public FlatStyle getFlatStyle() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setFlatStyle
public void setFlatStyle(FlatStyle FlatStyle) throws java.lang.Throwable, ArgumentException, InvalidOperationException, ArgumentNullException, ArgumentOutOfRangeException, IndexOutOfRangeException, PlatformNotSupportedException, FormatException, InvalidEnumArgumentException, RankException, ArrayTypeMismatchException, Win32Exception, NotSupportedException
-
getImageList
public ImageList getImageList() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setImageList
public void setImageList(ImageList ImageList) throws java.lang.Throwable, ArgumentNullException, InvalidOperationException, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, FormatException, NotSupportedException, MulticastNotSupportedException
-
getImeMode
public ImeMode getImeMode() throws java.lang.Throwable
- Overrides:
getImeMode
in classControl
- Throws:
java.lang.Throwable
-
setImeMode
public void setImeMode(ImeMode ImeMode) throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, InvalidEnumArgumentException, RankException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException, ArrayTypeMismatchException, InvalidOperationException, ObjectDisposedException, Win32Exception, NotSupportedException, OutOfMemoryException
- Overrides:
setImeMode
in classControl
- Throws:
java.lang.Throwable
ArgumentNullException
PlatformNotSupportedException
InvalidEnumArgumentException
RankException
ArgumentOutOfRangeException
IndexOutOfRangeException
ArgumentException
ArrayTypeMismatchException
InvalidOperationException
ObjectDisposedException
Win32Exception
NotSupportedException
OutOfMemoryException
-
addAutoSizeChanged
public void addAutoSizeChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
addAutoSizeChanged
in classControl
- Throws:
java.lang.Throwable
-
removeAutoSizeChanged
public void removeAutoSizeChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
removeAutoSizeChanged
in classControl
- Throws:
java.lang.Throwable
-
addBackgroundImageChanged
public void addBackgroundImageChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
addBackgroundImageChanged
in classControl
- Throws:
java.lang.Throwable
-
removeBackgroundImageChanged
public void removeBackgroundImageChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
removeBackgroundImageChanged
in classControl
- Throws:
java.lang.Throwable
-
addBackgroundImageLayoutChanged
public void addBackgroundImageLayoutChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
addBackgroundImageLayoutChanged
in classControl
- Throws:
java.lang.Throwable
-
removeBackgroundImageLayoutChanged
public void removeBackgroundImageLayoutChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
removeBackgroundImageLayoutChanged
in classControl
- Throws:
java.lang.Throwable
-
addImeModeChanged
public void addImeModeChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
addImeModeChanged
in classControl
- Throws:
java.lang.Throwable
-
removeImeModeChanged
public void removeImeModeChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
removeImeModeChanged
in classControl
- Throws:
java.lang.Throwable
-
addTabStopChanged
public void addTabStopChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
addTabStopChanged
in classControl
- Throws:
java.lang.Throwable
-
removeTabStopChanged
public void removeTabStopChanged(EventHandler handler) throws java.lang.Throwable
- Overrides:
removeTabStopChanged
in classControl
- Throws:
java.lang.Throwable
-
addTextAlignChanged
public void addTextAlignChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeTextAlignChanged
public void removeTextAlignChanged(EventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addKeyDown
public void addKeyDown(KeyEventHandler handler) throws java.lang.Throwable
- Overrides:
addKeyDown
in classControl
- Throws:
java.lang.Throwable
-
removeKeyDown
public void removeKeyDown(KeyEventHandler handler) throws java.lang.Throwable
- Overrides:
removeKeyDown
in classControl
- Throws:
java.lang.Throwable
-
addKeyUp
public void addKeyUp(KeyEventHandler handler) throws java.lang.Throwable
-
removeKeyUp
public void removeKeyUp(KeyEventHandler handler) throws java.lang.Throwable
- Overrides:
removeKeyUp
in classControl
- Throws:
java.lang.Throwable
-
addKeyPress
public void addKeyPress(KeyPressEventHandler handler) throws java.lang.Throwable
- Overrides:
addKeyPress
in classControl
- Throws:
java.lang.Throwable
-
removeKeyPress
public void removeKeyPress(KeyPressEventHandler handler) throws java.lang.Throwable
- Overrides:
removeKeyPress
in classControl
- Throws:
java.lang.Throwable
-
-