Freigeben über


ComboBox.MaxLength-Eigenschaft

Ruft die Anzahl von Zeichen ab, die ein Benutzer in ComboBox eingeben kann, oder legt diese fest.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Syntax

'Declaration
<LocalizableAttribute(True)> _
Public Property MaxLength As Integer
'Usage
Dim instance As ComboBox
Dim value As Integer

value = instance.MaxLength

instance.MaxLength = value
[LocalizableAttribute(true)] 
public int MaxLength { get; set; }
[LocalizableAttribute(true)] 
public:
property int MaxLength {
    int get ();
    void set (int value);
}
/** @property */
public int get_MaxLength ()

/** @property */
public void set_MaxLength (int value)
public function get MaxLength () : int

public function set MaxLength (value : int)

Eigenschaftenwert

Die Höchstanzahl von Zeichen, die vom Benutzer eingegeben werden können. Werte unter 0 (null) werden auf 0 (null) zurückgesetzt, d. h. auf den Standardwert.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

ComboBox-Klasse
ComboBox-Member
System.Windows.Forms-Namespace