Keysight Pathwave 89600 VSA .NET API
EnumDisplayNames Method
See Also 
Agilent.SA.Vsa.Interfaces Assembly > Agilent.SA.Vsa Namespace > IPropertyInfo2 Interface : EnumDisplayNames Method


propertyName
Name of the property to get the display names for.
enumValues
A list of the enum values.
displayNames
A list of the enum display names to use. The length of this array must be the same as the enumValues list and in order such that each element in the array maps to value at the same index in the enumValues list.

Glossary Item Box

Gets a list of names to use in the display for enumeration types of properties. This allows for the names to be different from the field name of the enumeration type and for the name to value mapping to be dynamic.

Syntax

Visual Basic (Declaration) 
Sub EnumDisplayNames( _
   ByVal propertyName As String, _
   ByRef enumValues() As Integer, _
   ByRef displayNames() As String _
) 
C# 
void EnumDisplayNames( 
   string propertyName,
   out int[] enumValues,
   out string[] displayNames
)
C++/CLI 
void EnumDisplayNames( 
   String^ propertyName,
   [Out] array<int>^ enumValues,
   [Out] array<String^>^ displayNames
) 

Parameters

propertyName
Name of the property to get the display names for.
enumValues
A list of the enum values.
displayNames
A list of the enum display names to use. The length of this array must be the same as the enumValues list and in order such that each element in the array maps to value at the same index in the enumValues list.

Requirements

Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)

See Also