Condividi tramite


DiagramItem Constructors

Definition

Overloads

DiagramItem()

Initializes a new instance of the DiagramItem class.

DiagramItem(ShapeElement)

Initializes a new instance of the DiagramItem class to represent the specified ShapeElement.

DiagramItem(LinkShape, LineSegment)

Initializes a new instance of the DiagramItem class to represent the specified LineSegment.

DiagramItem(ShapeElement, ShapeField)

Initializes a new instance of the DiagramItem class to represent the specified ShapeField.

DiagramItem(LinkShape, LineSegment, AnchorPoint)

Initializes a new instance of the DiagramItem class to represent the specified AnchorPoint.

DiagramItem(ShapeElement, ShapeField, ShapeSubField)

Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField.

DiagramItem(ShapeElement, ShapeField, ShapeSubField, LineSegment, AnchorPoint)

Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField.

DiagramItem()

Initializes a new instance of the DiagramItem class.

public:
 DiagramItem();
public DiagramItem ();
Public Sub New ()

Applies to

DiagramItem(ShapeElement)

Initializes a new instance of the DiagramItem class to represent the specified ShapeElement.

public:
 DiagramItem(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape);
public DiagramItem (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape);
new Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Public Sub New (shape As ShapeElement)

Parameters

shape
ShapeElement

The ShapeElement that this DiagramItem is to represent.

Applies to

DiagramItem(LinkShape, LineSegment)

Initializes a new instance of the DiagramItem class to represent the specified LineSegment.

public:
 DiagramItem(Microsoft::VisualStudio::Modeling::Diagrams::LinkShape ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::LineSegment ^ segment);
public DiagramItem (Microsoft.VisualStudio.Modeling.Diagrams.LinkShape shape, Microsoft.VisualStudio.Modeling.Diagrams.LineSegment segment);
new Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem : Microsoft.VisualStudio.Modeling.Diagrams.LinkShape * Microsoft.VisualStudio.Modeling.Diagrams.LineSegment -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Public Sub New (shape As LinkShape, segment As LineSegment)

Parameters

shape
LinkShape

The parent ShapeElement of the LineSegment. This cannot be null.

segment
LineSegment

The LineSegment that this DiagramItem is to represent.

Applies to

DiagramItem(ShapeElement, ShapeField)

Initializes a new instance of the DiagramItem class to represent the specified ShapeField.

public:
 DiagramItem(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ field);
public DiagramItem (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape, Microsoft.VisualStudio.Modeling.Diagrams.ShapeField field);
new Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Public Sub New (shape As ShapeElement, field As ShapeField)

Parameters

shape
ShapeElement

The parent ShapeElement of the ShapeField. This cannot be null.

field
ShapeField

The ShapeField that this DiagramItem is to represent.

Applies to

DiagramItem(LinkShape, LineSegment, AnchorPoint)

Initializes a new instance of the DiagramItem class to represent the specified AnchorPoint.

public:
 DiagramItem(Microsoft::VisualStudio::Modeling::Diagrams::LinkShape ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::LineSegment ^ segment, Microsoft::VisualStudio::Modeling::Diagrams::AnchorPoint ^ anchorPoint);
public DiagramItem (Microsoft.VisualStudio.Modeling.Diagrams.LinkShape shape, Microsoft.VisualStudio.Modeling.Diagrams.LineSegment segment, Microsoft.VisualStudio.Modeling.Diagrams.AnchorPoint anchorPoint);
new Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem : Microsoft.VisualStudio.Modeling.Diagrams.LinkShape * Microsoft.VisualStudio.Modeling.Diagrams.LineSegment * Microsoft.VisualStudio.Modeling.Diagrams.AnchorPoint -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Public Sub New (shape As LinkShape, segment As LineSegment, anchorPoint As AnchorPoint)

Parameters

shape
LinkShape

The parent ShapeElement of the LineSegment. This cannot be null.

segment
LineSegment

The LineSegment that this DiagramItem is to represent. This cannot be null.

anchorPoint
AnchorPoint

The anchor point that this DiagramItem is to represent.

Applies to

DiagramItem(ShapeElement, ShapeField, ShapeSubField)

Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField.

public:
 DiagramItem(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ field, Microsoft::VisualStudio::Modeling::Diagrams::ShapeSubField ^ subfield);
public DiagramItem (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape, Microsoft.VisualStudio.Modeling.Diagrams.ShapeField field, Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField subfield);
new Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Public Sub New (shape As ShapeElement, field As ShapeField, subfield As ShapeSubField)

Parameters

shape
ShapeElement

The parent ShapeElement of the ShapeSubField. This cannot be null.

field
ShapeField

The parent ShapeField of the ShapeSubField. This cannot be null.

subfield
ShapeSubField

The ShapeSubField that this DiagramItem is to represent.

Applies to

DiagramItem(ShapeElement, ShapeField, ShapeSubField, LineSegment, AnchorPoint)

Initializes a new instance of the DiagramItem class to represent the specified ShapeSubField.

public:
 DiagramItem(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ field, Microsoft::VisualStudio::Modeling::Diagrams::ShapeSubField ^ subfield, Microsoft::VisualStudio::Modeling::Diagrams::LineSegment ^ segment, Microsoft::VisualStudio::Modeling::Diagrams::AnchorPoint ^ anchorPoint);
public DiagramItem (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape, Microsoft.VisualStudio.Modeling.Diagrams.ShapeField field, Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField subfield, Microsoft.VisualStudio.Modeling.Diagrams.LineSegment segment, Microsoft.VisualStudio.Modeling.Diagrams.AnchorPoint anchorPoint);
new Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField * Microsoft.VisualStudio.Modeling.Diagrams.LineSegment * Microsoft.VisualStudio.Modeling.Diagrams.AnchorPoint -> Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
Public Sub New (shape As ShapeElement, field As ShapeField, subfield As ShapeSubField, segment As LineSegment, anchorPoint As AnchorPoint)

Parameters

shape
ShapeElement

The parent ShapeElement of the ShapeSubField. This cannot be null.

field
ShapeField

The parent ShapeField of the ShapeSubField. This cannot be null.

subfield
ShapeSubField

The ShapeSubField that this DiagramItem is to represent.

segment
LineSegment

The LineSegment that this DiagramItem is to represent.

anchorPoint
AnchorPoint

The LineSegment's Anchor Point that this DiagramItem is to represent

Applies to