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)
Syntax
'Declaration
Public Sub SetTopAnchor ( _
side As AnchoringBehavior.Edge, _
margin As Double _
)
public void SetTopAnchor(
AnchoringBehavior.Edge side,
double margin
)
public:
void SetTopAnchor(
AnchoringBehavior::Edge side,
double margin
)
member SetTopAnchor :
side:AnchoringBehavior.Edge *
margin:float -> unit
public function SetTopAnchor(
side : AnchoringBehavior.Edge,
margin : double
)
Parameters
side
Type: Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior.EdgeThe side of the parent ShapeElement to anchor to.
margin
Type: System.DoubleThe margin (in world units) between the ShapeField's top side and the specified side of the parent ShapeElement.
Remarks
Anchors the top side of the Shapefield to a particular side of the parent ShapeElement.
.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.