AnchoringBehavior.SetTopAnchor Method (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.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Sub SetTopAnchor ( _
percentage As Double _
)
public void SetTopAnchor(
double percentage
)
public:
void SetTopAnchor(
double percentage
)
member SetTopAnchor :
percentage:float -> unit
public function SetTopAnchor(
percentage : double
)
Parameters
percentage
Type: DoubleThe percentage of the parent ShapeElement's height that will define the horizontal line to anchor to. (1.0 is 100%)
Remarks
Anchors the top side of the ShapeField to the horizontal line that is a distance of [height of parent ShapeElement multiplied by percentage] relative to the top 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.