共用方式為


PresentationHelpers.CreateIShape 方法

包裝基礎實作的 ShapeElement,以便當做 UML 模型 IShape 使用。這不會建構或修改圖案。反之,它提供包括現有圖形或圖形內的欄位的參考。

命名空間:  Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation
組件:  Microsoft.VisualStudio.ArchitectureTools.Extensibility (在 Microsoft.VisualStudio.ArchitectureTools.Extensibility.dll 中)

語法

'宣告
<ExtensionAttribute> _
Public Shared Function CreateIShape ( _
    shape As ShapeElement, _
    field As ShapeField, _
    subfield As ShapeSubField _
) As IShape
public static IShape CreateIShape(
    this ShapeElement shape,
    ShapeField field,
    ShapeSubField subfield
)
[ExtensionAttribute]
public:
static IShape^ CreateIShape(
    ShapeElement^ shape, 
    ShapeField^ field, 
    ShapeSubField^ subfield
)
static member CreateIShape : 
        shape:ShapeElement * 
        field:ShapeField * 
        subfield:ShapeSubField -> IShape 
public static function CreateIShape(
    shape : ShapeElement, 
    field : ShapeField, 
    subfield : ShapeSubField
) : IShape

參數

傳回值

型別:Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation.IShape

使用注意事項

在 Visual Basic 和 C# 中,您可以在任何 ShapeElement 型別物件中呼叫這個方法以做為執行個體。使用執行個體方法語法呼叫這個方法時,請省略第一個參數。如需詳細資訊,請參閱擴充方法 (Visual Basic)擴充方法 (C# 程式設計手冊)

備註

如需詳細資訊,請參閱:

.NET Framework 安全性

請參閱

參考

PresentationHelpers 類別

Microsoft.VisualStudio.ArchitectureTools.Extensibility.Presentation 命名空間