DiagramItem.SetItem Method (ShapeElement, ShapeField, ShapeSubField)
Sets the DiagramItem to represent the specified ShapeSubField.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
Syntax
'Declaration
Public Sub SetItem ( _
shape As ShapeElement, _
field As ShapeField, _
subfield As ShapeSubField _
)
public void SetItem(
ShapeElement shape,
ShapeField field,
ShapeSubField subfield
)
public:
void SetItem(
ShapeElement^ shape,
ShapeField^ field,
ShapeSubField^ subfield
)
member SetItem :
shape:ShapeElement *
field:ShapeField *
subfield:ShapeSubField -> unit
public function SetItem(
shape : ShapeElement,
field : ShapeField,
subfield : ShapeSubField
)
Parameters
shape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe parent ShapeElement of the ShapeSubField. This cannot be null.
field
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeFieldThe parent ShapeField of the ShapeSubField. This cannot be null.
- subfield
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeSubField
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.