ConnectorDecorator 類別
類別,以在 ShapeFields 和子圖案置於連接器時,封裝它們用於表示標記法裝飾項目的方式。
繼承階層架構
System.Object
Microsoft.VisualStudio.Modeling.Diagrams.Decorator
Microsoft.VisualStudio.Modeling.Diagrams.ConnectorDecorator
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)
語法
'宣告
Public Class ConnectorDecorator _
Inherits Decorator
public class ConnectorDecorator : Decorator
ConnectorDecorator 類型會公開下列成員。
建構函式
名稱 | 描述 | |
---|---|---|
ConnectorDecorator(ShapeField, ConnectorDecoratorPosition) | 建立 ConnectorDecorator。 | |
ConnectorDecorator(ShapeField, ConnectorDecoratorPosition, PointD) | 建立 ConnectorDecorator。 | |
ConnectorDecorator(ShapeField, ConnectorDecoratorPosition, Boolean) | 建立 ConnectorDecorator。 | |
ConnectorDecorator(ShapeField, ConnectorDecoratorPosition, PointD, Boolean) | 建立 ConnectorDecorator。 |
回頁首
屬性
名稱 | 描述 | |
---|---|---|
CanMove | 是否可以移動這個裝飾項。裝飾項目只有在執行個體化為可移動時,而且還必須有主機,才能加以移動。 (繼承自 Decorator)。 | |
DecoratorAnchorMargins | 取得欄位周圍的邊界。裝飾項目可以將本身附加到此區域中的欄位。 (繼承自 Decorator)。 | |
Field | 取得指派 Decorator 至其中的欄位。 (繼承自 Decorator)。 | |
Offset | 取得或設定位移,此位移可修改 Decorator 的預設位置。 (繼承自 Decorator)。 | |
Position | 取得這個 Decorator 相對於父圖案的位置。 | |
RequiresHost | 所有的連接器裝飾項目都必須有主應用程式。 (覆寫 Decorator.RequiresHost。) |
回頁首
方法
回頁首
備註
連接器的裝飾項目需要主機圖案
執行緒安全
這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。