Dynamically Invoking Flex Methods

You can call methods, retrieve properties, and set properties on controls that Silk4NET does not expose by using the dynamic invoke feature. This feature is useful for working with custom controls and for working with controls that Silk4NET supports without customization.

Note: Typically, most properties are read-only and cannot be set.

Supported Methods and Properties

The following methods and properties can be called:
  • Methods and properties that Silk4NET supports for the control.
  • All public methods that the Flex API defines
  • If the control is a custom control that is derived from a standard control, all methods and properties from the standard control can be called.

Supported Parameter Types

The following parameter types are supported:
  • All built-in Silk4NET types

    Silk4NET types includes primitive types (such as boolean, int, string), lists, and other types (such as Point)

Returned Values

The following values are returned for properties and methods that have a return value:
  • The correct value for all built-in Silk4NET types. These types are listed in the Supported Parameter Types section.
  • All methods that have no return value return null in C# or Nothing in VB.