类封装了使用的 ShapeFields 和子形状,以将其放置在连接器上时表示 Notation Decorators
继承层次结构
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。) |
![]() |
Offset | 获取或设置用于修改修饰器的默认位置的偏移量。 (继承自 Decorator。) |
![]() |
Position | 获取与父形状相关的修饰器的位置。 |
![]() |
RequiresHost | 所有连接器修饰器都需要一个宿主。 (重写 Decorator.RequiresHost。) |
页首
方法
页首
备注
连接线的所有装饰器需要托管形状
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。