CompositeShape 類別

提供複合圖形的基底類別,此複合圖形衍生自 Control,並可實作 IShape

命名空間: Microsoft.Expression.Controls
組件: Microsoft.Expression.Drawing (在 microsoft.expression.drawing.dll 中)

語法

'宣告
Public MustInherit Class CompositeShape
    Inherits Control
    Implements IGeometrySourceParameters, IShape
'用途
Dim instance As CompositeShape
public abstract class CompositeShape : Control, IGeometrySourceParameters, IShape
public ref class CompositeShape abstract : public Control, IGeometrySourceParameters, IShape
public abstract class CompositeShape extends Control implements IGeometrySourceParameters, IShape
public abstract class CompositeShape extends Control implements IGeometrySourceParameters, IShape

備註

CompositeShape 可實作 IShape 介面,並可支援呈現和 Shape 類似的幾何圖形,不過該幾何圖形可在版面配置邊界之外呈現。 典型的實作會將自訂的預設範本放置在 generic.xaml 中,而 generic.xaml 可透過範本將大部分的圖形屬性繫結至 Path。它也會擴充 GeometrySource 屬性,以自訂 Path 的外觀。

繼承階層

System.Object
   System.Windows.Threading.DispatcherObject
     System.Windows.DependencyObject
       System.Windows.Media.Visual
         System.Windows.UIElement
           System.Windows.FrameworkElement
             System.Windows.Controls.Control
               Microsoft.Expression.Controls.CompositeShape
                 Microsoft.Expression.Controls.LineArrow

執行緒安全性

此型別的所有公用靜態 (Visual Basic 中為 Shared ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。

另請參閱

參照

CompositeShape 成員
Microsoft.Expression.Controls 命名空間