Methode · Configuration
ApplyDisplayState-Methode (Configuration)
Wendet einen Anzeigezustand auf eine Konfiguration an.
Syntax
Function ApplyDisplayState( _
ByVal DisplayStateName As String _
) As BooleanbErfolg = swConfig.ApplyDisplayState("Anzeigezustand-2")Parameter
DisplayStateNameStringByVal- Name des Anzeigezustands.
Rückgabewert
True, wenn angewendet, sonst False.
Beispiel
' swConfig ist eine Configuration, etwa aus ConfigurationManager.ActiveConfiguration.
Dim vZustaende As Variant
vZustaende = swConfig.GetDisplayStates
If UBound(vZustaende) >= 1 Then swConfig.ApplyDisplayState vZustaende(1)Bemerkungen
Die Namen der Anzeigezustände liefert Configuration.GetDisplayStates.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2006
Englisches Original: IConfiguration::ApplyDisplayState in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.