IVsUIWpfLoader.CreateUIElementOfType(Object, IVsUIElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a visual element given its managed type.
public:
int CreateUIElementOfType(System::Object ^ pUnkElementType, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIElement ^ % ppUIElement);
public:
int CreateUIElementOfType(Platform::Object ^ pUnkElementType, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIElement ^ & ppUIElement);
int CreateUIElementOfType(winrt::Windows::Foundation::IInspectable const & pUnkElementType, [Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUIElement const & & ppUIElement);
public int CreateUIElementOfType (object pUnkElementType, out Microsoft.VisualStudio.Shell.Interop.IVsUIElement ppUIElement);
abstract member CreateUIElementOfType : obj * IVsUIElement -> int
Public Function CreateUIElementOfType (pUnkElementType As Object, ByRef ppUIElement As IVsUIElement) As Integer
Parameters
- pUnkElementType
- Object
[in] The managed type from which to create the visual element.
- ppUIElement
- IVsUIElement
[out] The visual element object.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.