AnchoringBehavior::SetTopAnchor Method (AnchoringBehavior::Edge, Double)

 

Anchors the ShapeField's top side to a particular side of the parent ShapeElement.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
void SetTopAnchor(
	AnchoringBehavior::Edge side,
	double margin
)

Parameters

side
Type: Microsoft.VisualStudio.Modeling.Diagrams::AnchoringBehavior::Edge

The side of the parent ShapeElement to anchor to.

margin
Type: System::Double

The margin (in world units) between the ShapeField's top side and the specified side of the parent ShapeElement.

Anchors the top side of the Shapefield to a particular side of the parent ShapeElement.

Return to top
Show: