Gets the anchor for the shape.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public ReadOnly Property Anchoring As AnchoringBehavior
'使用
Dim instance As NodeShape
Dim value As AnchoringBehavior
value = instance.Anchoring
public AnchoringBehavior Anchoring { get; }
public:
property AnchoringBehavior^ Anchoring {
AnchoringBehavior^ get ();
}
public function get Anchoring () : AnchoringBehavior
Property Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior
The anchor for the shape.
Remarks
The anchor defines how the shape repositions and resizes itself when its parent shape is moved and resized.
Permissions
- 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.