Freigeben über


ErrorProvider.GetIconAlignment-Methode

Ruft einen Wert ab, der angibt, an welcher Position das Fehlersymbol relativ zum Steuerelement platziert werden soll.

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

Syntax

'Declaration
<LocalizableAttribute(True)> _
Public Function GetIconAlignment ( _
    control As Control _
) As ErrorIconAlignment
'Usage
Dim instance As ErrorProvider
Dim control As Control
Dim returnValue As ErrorIconAlignment

returnValue = instance.GetIconAlignment(control)
[LocalizableAttribute(true)] 
public ErrorIconAlignment GetIconAlignment (
    Control control
)
[LocalizableAttribute(true)] 
public:
ErrorIconAlignment GetIconAlignment (
    Control^ control
)
/** @attribute LocalizableAttribute(true) */ 
public ErrorIconAlignment GetIconAlignment (
    Control control
)
LocalizableAttribute(true) 
public function GetIconAlignment (
    control : Control
) : ErrorIconAlignment

Parameter

  • control
    Das Steuerelement, für das die Position des Symbols abgerufen werden soll.

Rückgabewert

Einer der ErrorIconAlignment-Werte. Die Standardsymbolausrichtung ist MiddleRight.

Ausnahmen

Ausnahmetyp Bedingung

ArgumentNullException

control ist NULL (Nothing in Visual Basic).

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

ErrorProvider-Klasse
ErrorProvider-Member
System.Windows.Forms-Namespace
SetIconPadding
SetIconAlignment