Package system.windows.forms
Class TextBox
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
,IDropTarget
- Direct Known Subclasses:
DataGridViewTextBoxEditingControl
public class TextBox extends TextBoxBase
The base .NET class managing System.Windows.Forms.TextBox, System.Windows.Forms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Windows.Forms.TextBox
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=9.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.TextBoxstatic JCType
classType
The type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTextAlignChanged(EventHandler handler)
static TextBox
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoTextBox
, a cast assert is made to check if types are compatible.boolean
getAcceptsReturn()
AutoCompleteStringCollection
getAutoCompleteCustomSource()
AutoCompleteMode
getAutoCompleteMode()
AutoCompleteSource
getAutoCompleteSource()
CharacterCasing
getCharacterCasing()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typechar
getPasswordChar()
java.lang.String
getPlaceholderText()
ScrollBars
getScrollBars()
HorizontalAlignment
getTextAlign()
boolean
getUseSystemPasswordChar()
void
Paste(java.lang.String text)
void
removeTextAlignChanged(EventHandler handler)
void
setAcceptsReturn(boolean AcceptsReturn)
void
setAutoCompleteCustomSource(AutoCompleteStringCollection AutoCompleteCustomSource)
void
setAutoCompleteMode(AutoCompleteMode AutoCompleteMode)
void
setAutoCompleteSource(AutoCompleteSource AutoCompleteSource)
void
setCharacterCasing(CharacterCasing CharacterCasing)
void
setJCOInstance(JCObject instance)
void
setPasswordChar(char PasswordChar)
void
setPlaceholderText(java.lang.String PlaceholderText)
void
setScrollBars(ScrollBars ScrollBars)
void
setTextAlign(HorizontalAlignment TextAlign)
void
setUseSystemPasswordChar(boolean UseSystemPasswordChar)
-
Methods inherited from class system.windows.forms.TextBoxBase
addAcceptsTabChanged, addAutoSizeChanged, addBackgroundImageChanged, addBackgroundImageLayoutChanged, addBorderStyleChanged, addClick, addHideSelectionChanged, addModifiedChanged, addMouseClick, addMultilineChanged, addPaddingChanged, addPaint, addReadOnlyChanged, AppendText, Clear, ClearUndo, Copy, Cut, DeselectAll, getAcceptsTab, getBorderStyle, getCanUndo, GetCharFromPosition, GetCharIndexFromPosition, GetFirstCharIndexFromLine, GetFirstCharIndexOfCurrentLine, getHideSelection, GetLineFromCharIndex, getLines, getMaxLength, getModified, getMultiline, getPadding, GetPositionFromCharIndex, getPreferredHeight, getReadOnly, getSelectedText, getSelectionLength, getSelectionStart, getShortcutsEnabled, getTextLength, getWordWrap, Paste, removeAcceptsTabChanged, removeAutoSizeChanged, removeBackgroundImageChanged, removeBackgroundImageLayoutChanged, removeBorderStyleChanged, removeClick, removeHideSelectionChanged, removeModifiedChanged, removeMouseClick, removeMultilineChanged, removePaddingChanged, removePaint, removeReadOnlyChanged, ScrollToCaret, Select, SelectAll, setAcceptsTab, setBorderStyle, setHideSelection, setLines, setMaxLength, setModified, setMultiline, setPadding, setReadOnly, setSelectedText, setSelectionLength, setSelectionStart, setShortcutsEnabled, setWordWrap, Undo
-
Methods inherited from class system.windows.forms.Control
addBackColorChanged, addBindingContextChanged, addCausesValidationChanged, addChangeUICues, addClientSizeChanged, addContextMenuStripChanged, addControlAdded, addControlRemoved, addCursorChanged, addDataContextChanged, addDockChanged, addDoubleClick, addDpiChangedAfterParent, addDpiChangedBeforeParent, addDragDrop, addDragEnter, addDragLeave, addDragOver, addEnabledChanged, addEnter, addFontChanged, addForeColorChanged, addGiveFeedback, addGotFocus, addHandleCreated, addHandleDestroyed, addHelpRequested, addImeModeChanged, addInvalidated, addKeyDown, addKeyPress, addKeyUp, addLayout, addLeave, addLocationChanged, addLostFocus, addMarginChanged, addMouseCaptureChanged, addMouseDoubleClick, addMouseDown, addMouseEnter, addMouseHover, addMouseLeave, addMouseMove, addMouseUp, addMouseWheel, addMove, addParentChanged, addPreviewKeyDown, addQueryAccessibilityHelp, addQueryContinueDrag, addRegionChanged, addResize, addRightToLeftChanged, addSizeChanged, addStyleChanged, addSystemColorsChanged, addTabIndexChanged, addTabStopChanged, 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, getImeMode, getInvokeRequired, getIsAccessible, getIsAncestorSiteInDesignMode, getIsDisposed, getIsHandleCreated, getIsMirrored, getLayoutEngine, getLeft, getLocation, getMargin, getMaximumSize, getMinimumSize, getModifierKeys, getMouseButtons, getMousePosition, getName, GetNextControl, getParent, getPreferredSize, GetPreferredSize, getProductName, getProductVersion, getRecreatingHandle, getRegion, getRight, getRightToLeft, getSize, getTabIndex, getTabStop, getTag, getText, getTop, getTopLevelControl, getUseWaitCursor, getVisible, getWidth, getWindowTarget, Hide, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invalidate, Invoke, InvokeAsync, IsKeyLocked, IsMnemonic, LogicalToDeviceUnits, LogicalToDeviceUnits, PerformLayout, PerformLayout, PointToClient, PointToScreen, PreProcessControlMessage, PreProcessMessage, RectangleToClient, RectangleToScreen, Refresh, removeBackColorChanged, removeBindingContextChanged, removeCausesValidationChanged, removeChangeUICues, removeClientSizeChanged, removeContextMenuStripChanged, removeControlAdded, removeControlRemoved, removeCursorChanged, removeDataContextChanged, removeDockChanged, removeDoubleClick, removeDpiChangedAfterParent, removeDpiChangedBeforeParent, removeDragDrop, removeDragEnter, removeDragLeave, removeDragOver, removeEnabledChanged, removeEnter, removeFontChanged, removeForeColorChanged, removeGiveFeedback, removeGotFocus, removeHandleCreated, removeHandleDestroyed, removeHelpRequested, removeImeModeChanged, removeInvalidated, removeKeyDown, removeKeyPress, removeKeyUp, removeLayout, removeLeave, removeLocationChanged, removeLostFocus, removeMarginChanged, removeMouseCaptureChanged, removeMouseDoubleClick, removeMouseDown, removeMouseEnter, removeMouseHover, removeMouseLeave, removeMouseMove, removeMouseUp, removeMouseWheel, removeMove, removeParentChanged, removePreviewKeyDown, removeQueryAccessibilityHelp, removeQueryContinueDrag, removeRegionChanged, removeResize, removeRightToLeftChanged, removeSizeChanged, removeStyleChanged, removeSystemColorsChanged, removeTabIndexChanged, removeTabStopChanged, 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, setImeMode, setIsAccessible, setLeft, setLocation, setMargin, setMaximumSize, setMinimumSize, setName, setParent, setRegion, setRightToLeft, setSize, setTabIndex, setTabStop, 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=9.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.TextBox- See Also:
- Constant Field Values
-
-
Constructor Detail
-
TextBox
public TextBox(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
TextBox
public TextBox() throws java.lang.Throwable, ArgumentNullException, PlatformNotSupportedException, RankException, ArgumentException, ArrayTypeMismatchException, OutOfMemoryException, ObjectDisposedException, InvalidOperationException, Win32Exception, NotSupportedException
-
-
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 classTextBoxBase
- 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 classTextBoxBase
- 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 classTextBoxBase
- 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 classTextBoxBase
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classTextBoxBase
-
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 classTextBoxBase
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static TextBox cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoTextBox
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
TextBox
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Paste
public void Paste(java.lang.String text) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, Win32Exception
-
getAcceptsReturn
public boolean getAcceptsReturn() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAcceptsReturn
public void setAcceptsReturn(boolean AcceptsReturn) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getUseSystemPasswordChar
public boolean getUseSystemPasswordChar() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setUseSystemPasswordChar
public void setUseSystemPasswordChar(boolean UseSystemPasswordChar) throws java.lang.Throwable, NotSupportedException, ArgumentException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException, IndexOutOfRangeException, FormatException, ObjectDisposedException, Win32Exception, OutOfMemoryException, ArgumentNullException
-
getPasswordChar
public char getPasswordChar() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ObjectDisposedException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, OutOfMemoryException, FormatException, Win32Exception
-
setPasswordChar
public void setPasswordChar(char PasswordChar) throws java.lang.Throwable, NotSupportedException, ArgumentException, ObjectDisposedException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, OutOfMemoryException, FormatException, Win32Exception
-
getPlaceholderText
public java.lang.String getPlaceholderText() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPlaceholderText
public void setPlaceholderText(java.lang.String PlaceholderText) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, InvalidOperationException, FormatException
-
getAutoCompleteMode
public AutoCompleteMode getAutoCompleteMode() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAutoCompleteMode
public void setAutoCompleteMode(AutoCompleteMode AutoCompleteMode) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ObjectDisposedException, Win32Exception, NotSupportedException, OutOfMemoryException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
ObjectDisposedException
Win32Exception
NotSupportedException
OutOfMemoryException
RankException
ArrayTypeMismatchException
InvalidCastException
-
getAutoCompleteSource
public AutoCompleteSource getAutoCompleteSource() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setAutoCompleteSource
public void setAutoCompleteSource(AutoCompleteSource AutoCompleteSource) throws java.lang.Throwable, NotSupportedException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException, InvalidOperationException, ObjectDisposedException, Win32Exception, OutOfMemoryException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
NotSupportedException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
FormatException
InvalidOperationException
ObjectDisposedException
Win32Exception
OutOfMemoryException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
InvalidEnumArgumentException
-
getAutoCompleteCustomSource
public AutoCompleteStringCollection getAutoCompleteCustomSource() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, Win32Exception, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, MulticastNotSupportedException, ArgumentNullException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ObjectDisposedException
Win32Exception
OutOfMemoryException
ArgumentOutOfRangeException
NotSupportedException
MulticastNotSupportedException
ArgumentNullException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
-
setAutoCompleteCustomSource
public void setAutoCompleteCustomSource(AutoCompleteStringCollection AutoCompleteCustomSource) throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, InvalidOperationException, ObjectDisposedException, Win32Exception, OutOfMemoryException, ArgumentOutOfRangeException, NotSupportedException, MulticastNotSupportedException, ArgumentNullException, IndexOutOfRangeException, RankException, ArrayTypeMismatchException, InvalidCastException
- Throws:
java.lang.Throwable
ArgumentException
PlatformNotSupportedException
InvalidOperationException
ObjectDisposedException
Win32Exception
OutOfMemoryException
ArgumentOutOfRangeException
NotSupportedException
MulticastNotSupportedException
ArgumentNullException
IndexOutOfRangeException
RankException
ArrayTypeMismatchException
InvalidCastException
-
getCharacterCasing
public CharacterCasing getCharacterCasing() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setCharacterCasing
public void setCharacterCasing(CharacterCasing CharacterCasing) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ObjectDisposedException, Win32Exception, NotSupportedException, OutOfMemoryException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
ObjectDisposedException
Win32Exception
NotSupportedException
OutOfMemoryException
ArgumentNullException
-
getTextAlign
public HorizontalAlignment getTextAlign() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setTextAlign
public void setTextAlign(HorizontalAlignment TextAlign) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ObjectDisposedException, Win32Exception, NotSupportedException, OutOfMemoryException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
ObjectDisposedException
Win32Exception
NotSupportedException
OutOfMemoryException
ArgumentNullException
-
getScrollBars
public ScrollBars getScrollBars() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setScrollBars
public void setScrollBars(ScrollBars ScrollBars) throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, IndexOutOfRangeException, ArgumentOutOfRangeException, FormatException, InvalidEnumArgumentException, ObjectDisposedException, Win32Exception, NotSupportedException, OutOfMemoryException, ArgumentNullException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
PlatformNotSupportedException
IndexOutOfRangeException
ArgumentOutOfRangeException
FormatException
InvalidEnumArgumentException
ObjectDisposedException
Win32Exception
NotSupportedException
OutOfMemoryException
ArgumentNullException
-
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
-
-