AnchoringBehavior.SetTopAnchor Method

Definition

Overloads

SetTopAnchor(NodeShape, AnchoringBehavior+Edge, Double)

Anchors the ShapeField's top side to a particular side of a sibling NodeShape.

SetTopAnchor(Double)

Anchors the ShapeField's top side to the horizontal line which is a distance of [parent ShapeElement's height multiplied by percentage] relative to the parent ShapeElement's top side.

SetTopAnchor(AnchoringBehavior+Edge, Double)

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

SetTopAnchor(NodeShape, Double)

Anchors the ShapeField's top side to the horizontal line which is a distance of [sibling NodeShape's height multiplied by percentage] relative to the sibling NodeShape's top side.

SetTopAnchor(ShapeField, Double)

Anchors the ShapeField's top side to the horizontal line which is a distance of [sibling ShapeField's height multiplied by percentage] relative to the sibling ShapeField's top side.

SetTopAnchor(ShapeField, AnchoringBehavior+Edge, Double)

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

SetTopAnchor(NodeShape, AnchoringBehavior+Edge, Double)

Anchors the ShapeField's top side to a particular side of a sibling NodeShape.

public:
 void SetTopAnchor(Microsoft::VisualStudio::Modeling::Diagrams::NodeShape ^ sibling, Microsoft::VisualStudio::Modeling::Diagrams::AnchoringBehavior::Edge side, double margin);
public void SetTopAnchor (Microsoft.VisualStudio.Modeling.Diagrams.NodeShape sibling, Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior.Edge side, double margin);
member this.SetTopAnchor : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior.Edge * double -> unit
Public Sub SetTopAnchor (sibling As NodeShape, side As AnchoringBehavior.Edge, margin As Double)

Parameters

sibling
NodeShape

The sibling NodeShape to anchor to.

side
AnchoringBehavior.Edge

The side of the sibling NodeShape to anchor to.

margin
Double

The margin (in world units) between the NodeShapeField's top side and the specified side of the sibling NodeShape.

Applies to

SetTopAnchor(Double)

Anchors the ShapeField's top side to the horizontal line which is a distance of [parent ShapeElement's height multiplied by percentage] relative to the parent ShapeElement's top side.

public:
 void SetTopAnchor(double percentage);
public void SetTopAnchor (double percentage);
member this.SetTopAnchor : double -> unit
Public Sub SetTopAnchor (percentage As Double)

Parameters

percentage
Double

The percentage of the parent ShapeElement's height that will define the horizontal line to anchor to. (1.0 is 100%)

Applies to

SetTopAnchor(AnchoringBehavior+Edge, Double)

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

public:
 void SetTopAnchor(Microsoft::VisualStudio::Modeling::Diagrams::AnchoringBehavior::Edge side, double margin);
public void SetTopAnchor (Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior.Edge side, double margin);
member this.SetTopAnchor : Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior.Edge * double -> unit
Public Sub SetTopAnchor (side As AnchoringBehavior.Edge, margin As Double)

Parameters

side
AnchoringBehavior.Edge

The side of the parent ShapeElement to anchor to.

margin
Double

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

Applies to

SetTopAnchor(NodeShape, Double)

Anchors the ShapeField's top side to the horizontal line which is a distance of [sibling NodeShape's height multiplied by percentage] relative to the sibling NodeShape's top side.

public:
 void SetTopAnchor(Microsoft::VisualStudio::Modeling::Diagrams::NodeShape ^ sibling, double percentage);
public void SetTopAnchor (Microsoft.VisualStudio.Modeling.Diagrams.NodeShape sibling, double percentage);
member this.SetTopAnchor : Microsoft.VisualStudio.Modeling.Diagrams.NodeShape * double -> unit
Public Sub SetTopAnchor (sibling As NodeShape, percentage As Double)

Parameters

sibling
NodeShape

The sibling NodeShape whose height will be considered 100%.

percentage
Double

The percentage of the sibling NodeShape's height that will define the horizontal line to anchor to. (1.0 is 100%)

Applies to

SetTopAnchor(ShapeField, Double)

Anchors the ShapeField's top side to the horizontal line which is a distance of [sibling ShapeField's height multiplied by percentage] relative to the sibling ShapeField's top side.

public:
 void SetTopAnchor(Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ sibling, double percentage);
public void SetTopAnchor (Microsoft.VisualStudio.Modeling.Diagrams.ShapeField sibling, double percentage);
member this.SetTopAnchor : Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * double -> unit
Public Sub SetTopAnchor (sibling As ShapeField, percentage As Double)

Parameters

sibling
ShapeField

The sibling ShapeField whose height will be considered 100%.

percentage
Double

The percentage of the sibling ShapeField's height that will define the horizontal line to anchor to. (1.0 is 100%)

Applies to

SetTopAnchor(ShapeField, AnchoringBehavior+Edge, Double)

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

public:
 void SetTopAnchor(Microsoft::VisualStudio::Modeling::Diagrams::ShapeField ^ sibling, Microsoft::VisualStudio::Modeling::Diagrams::AnchoringBehavior::Edge side, double margin);
public void SetTopAnchor (Microsoft.VisualStudio.Modeling.Diagrams.ShapeField sibling, Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior.Edge side, double margin);
member this.SetTopAnchor : Microsoft.VisualStudio.Modeling.Diagrams.ShapeField * Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior.Edge * double -> unit
Public Sub SetTopAnchor (sibling As ShapeField, side As AnchoringBehavior.Edge, margin As Double)

Parameters

sibling
ShapeField

The sibling ShapeField to anchor to.

side
AnchoringBehavior.Edge

The side of the sibling ShapeField to anchor to.

margin
Double

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

Applies to