AnchoringBehavior.SetTopAnchor Method (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.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaração
Public Sub SetTopAnchor ( _
sibling As ShapeField, _
percentage As Double _
)
public void SetTopAnchor(
ShapeField sibling,
double percentage
)
public:
void SetTopAnchor(
ShapeField^ sibling,
double percentage
)
member SetTopAnchor :
sibling:ShapeField *
percentage:float -> unit
public function SetTopAnchor(
sibling : ShapeField,
percentage : double
)
Parameters
- sibling
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeField
The sibling ShapeField whose height will be considered 100%.
- percentage
Type: System.Double
The percentage of the sibling ShapeField'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 sibling ShapeField multiplied by percentage] relative to the top side of the sibling ShapeField.
.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.