Share via


WinFormsDataBindingHelper.InitializeDataSourceFromBinding Method

Initialize the dropdown list for a ComboBox using the values of the enumeration it is bound to.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub InitializeDataSourceFromBinding ( _
    combo As ComboBox _
)
public static void InitializeDataSourceFromBinding(
    this ComboBox combo
)
[ExtensionAttribute]
public:
static void InitializeDataSourceFromBinding(
    ComboBox^ combo
)
static member InitializeDataSourceFromBinding : 
        combo:ComboBox -> unit
public static function InitializeDataSourceFromBinding(
    combo : ComboBox
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ComboBox. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.NET Framework Security

See Also

Reference

WinFormsDataBindingHelper Class

Microsoft.VisualStudio.Modeling.Design Namespace