AnchoringBehavior.SetRightAnchor Method (ShapeField, Double)
Anchors the ShapeField's right side to the vertical line which is a distance of [sibling ShapeField's width multiplied by percentage] relative to the sibling ShapeField's left 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 SetRightAnchor ( _
sibling As ShapeField, _
percentage As Double _
)
public void SetRightAnchor(
ShapeField sibling,
double percentage
)
public:
void SetRightAnchor(
ShapeField^ sibling,
double percentage
)
member SetRightAnchor :
sibling:ShapeField *
percentage:float -> unit
public function SetRightAnchor(
sibling : ShapeField,
percentage : double
)
Parameters
sibling
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeFieldThe sibling ShapeField whose width will be considered 100%.
percentage
Type: DoubleThe percentage of the sibling ShapeField's width that will define the vertical line to anchor to. (1.0 is 100%)
Remarks
Anchors the right side of the Shapefield to the vertical line that is a distance of [width of sibling ShapeField multiplied by percentage] relative to the left 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.