Is such a thing possible?

Thanks Tim. You’re right. What I want is something like that:

I have a base class called Shading. There are Subclasses of Shading: ColorShading (with BackgroundColor As Color Property) & PictureShading (with BackgroundPicture As Picture Property). Now I simply want to do something like this for Shading instances:

Var shad As Shading ' Base Class.

shad = Color.Red ' Should return a ColorShading (Subclass of Shading) Instance.

' or

shad = MyPicture ' Should return a PictureShading (Subclass of Shading) Instance.