WindowHelper.CreateChildElement 方法 (Guid, UInt32, IVsUISimpleDataSource, FrameworkElement, FrameworkElement%)

创建一个并设置元素,指定的父的子元素。

命名空间:  Microsoft.Internal.VisualStudio.PlatformUI
程序集:  Microsoft.VisualStudio.Shell.11.0(在 Microsoft.VisualStudio.Shell.11.0.dll 中)

语法

声明
Public Shared Function CreateChildElement ( _
    factory As Guid, _
    elementId As UInteger, _
    dataSource As IVsUISimpleDataSource, _
    parent As FrameworkElement, _
    <OutAttribute> ByRef frameworkElement As FrameworkElement _
) As Boolean
public static bool CreateChildElement(
    Guid factory,
    uint elementId,
    IVsUISimpleDataSource dataSource,
    FrameworkElement parent,
    out FrameworkElement frameworkElement
)

参数

  • factory
    类型:System.Guid
    UI 工厂的 GUID 如果 UI 元素。
  • elementId
    类型:System.UInt32
    要创建和显示的 UI 元素的 ID。

返回值

类型:System.Boolean
true ,如果父关系能生成,否则 false。

.NET Framework 安全性

请参见

参考

WindowHelper 类

CreateChildElement 重载

Microsoft.Internal.VisualStudio.PlatformUI 命名空间