AnchoringBehavior Class

Describes how the ShapeField should position and size itself as the parent NodeShape moves and resizes.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.Modeling.Diagrams.AnchoringBehavior

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 Class AnchoringBehavior
public class AnchoringBehavior
public ref class AnchoringBehavior
type AnchoringBehavior =  class end
public class AnchoringBehavior

The AnchoringBehavior type exposes the following members.

Constructors

  Name Description
Public method AnchoringBehavior(NodeShape)
Public method AnchoringBehavior(ShapeField)

Top

Properties

  Name Description
Public property HasBottomAnchor Gets a value indicating whether a bottom anchor has been specified.
Public property HasLeftAnchor Gets a value indicating whether a left anchor has been specified.
Public property HasRightAnchor Gets a value indicating whether a right anchor has been specified.
Public property HasTopAnchor Gets a value indicating whether a top anchor has been specified.
Public property InvisibleCollapseFlags
Public property MinimumHeight Gets or sets the minimum height in world units.
Public property MinimumHeightInLines Gets or sets the minimum number of lines of text for this shape field.
Public property MinimumWidth
Public property MinimumWidthInCharacters

Top

Methods

  Name Description
Public method CenterHorizontally()
Public method CenterHorizontally(Double)
Public method CenterHorizontally(AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge)
Public method CenterHorizontally(AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge)
Public method CenterHorizontally(NodeShape, AnchoringBehavior.Edge, AnchoringBehavior.Edge)
Public method CenterHorizontally(ShapeField, AnchoringBehavior.Edge, AnchoringBehavior.Edge)
Public method CenterHorizontally(AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge, Double)
Public method CenterHorizontally(AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge, Double)
Public method CenterHorizontally(NodeShape, AnchoringBehavior.Edge, AnchoringBehavior.Edge, Double)
Public method CenterHorizontally(NodeShape, AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge)
Public method CenterHorizontally(NodeShape, AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge)
Public method CenterHorizontally(ShapeField, AnchoringBehavior.Edge, AnchoringBehavior.Edge, Double)
Public method CenterHorizontally(ShapeField, AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge)
Public method CenterHorizontally(ShapeField, AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge)
Public method CenterHorizontally(NodeShape, AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge, Double)
Public method CenterHorizontally(NodeShape, AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge, Double)
Public method CenterHorizontally(ShapeField, AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge, Double)
Public method CenterHorizontally(ShapeField, AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge, Double)
Public method CenterVertically()
Public method CenterVertically(Double)
Public method CenterVertically(AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge)
Public method CenterVertically(AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge)
Public method CenterVertically(NodeShape, AnchoringBehavior.Edge, AnchoringBehavior.Edge)
Public method CenterVertically(ShapeField, AnchoringBehavior.Edge, AnchoringBehavior.Edge)
Public method CenterVertically(AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge, Double)
Public method CenterVertically(AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge, Double)
Public method CenterVertically(NodeShape, AnchoringBehavior.Edge, AnchoringBehavior.Edge, Double)
Public method CenterVertically(NodeShape, AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge)
Public method CenterVertically(NodeShape, AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge)
Public method CenterVertically(ShapeField, AnchoringBehavior.Edge, AnchoringBehavior.Edge, Double)
Public method CenterVertically(ShapeField, AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge)
Public method CenterVertically(ShapeField, AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge)
Public method CenterVertically(NodeShape, AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge, Double)
Public method CenterVertically(NodeShape, AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge, Double)
Public method CenterVertically(ShapeField, AnchoringBehavior.Edge, NodeShape, AnchoringBehavior.Edge, Double)
Public method CenterVertically(ShapeField, AnchoringBehavior.Edge, ShapeField, AnchoringBehavior.Edge, Double)
Public method Clear Clears the currently set AnchorTargets and Suspensions.
Public method ClearBottomAnchor Clears the bottom archor targets.
Public method ClearRightAnchor Clears the right archor targets.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetBottomAnchor(Double) Anchors the bottom of the ShapeField at a specified distance from the top of the parent ShapeNode.
Public method SetBottomAnchor(AnchoringBehavior.Edge, Double) Anchors the bottom of the ShapeField to a particular side of the parent ShapeElement.
Public method SetBottomAnchor(NodeShape, Double) Anchors the bottom of the ShapeField at a distance from the top of a sibling.
Public method SetBottomAnchor(ShapeField, Double) Anchors the bottom of the ShapeField at a distance from the top of a sibling.
Public method SetBottomAnchor(NodeShape, AnchoringBehavior.Edge, Double) Anchors the bottom of the ShapeField to a particular side of a sibling NodeShape.
Public method SetBottomAnchor(ShapeField, AnchoringBehavior.Edge, Double) Anchors the ShapeField's bottom side to a particular side of a sibling ShapeField.
Public method SetLeftAnchor(Double) Anchors the ShapeField's left side to the vertical line which is a distance of [parent ShapeElement's width multiplied by percentage] relative to the parent ShapeElement's left side.
Public method SetLeftAnchor(AnchoringBehavior.Edge, Double) Anchors the ShapeField's left side to a particular side of the parent Shape.
Public method SetLeftAnchor(NodeShape, Double) Anchors the ShapeField's left side at a specified distance from a sibling NodeShape.
Public method SetLeftAnchor(ShapeField, Double) Anchors the ShapeField's left 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.
Public method SetLeftAnchor(NodeShape, AnchoringBehavior.Edge, Double) Anchors the ShapeField's left side to a particular side of a sibling ShapeElement.
Public method SetLeftAnchor(ShapeField, AnchoringBehavior.Edge, Double) Anchors the ShapeField's left side to a particular side of a sibling ShapeField.
Public method SetRightAnchor(Double) Anchors the ShapeField's right side to the vertical line which is a distance of [parent ShapeElement's width multiplied by percentage] relative to the parent ShapeElement's left side.
Public method SetRightAnchor(AnchoringBehavior.Edge, Double) Anchors the ShapeField's right side to a particular side of the parent ShapeElement.
Public method SetRightAnchor(NodeShape, Double) Anchors the ShapeField's right side to the vertical line which is a distance of [sibling NodeShape's width multiplied by percentage] relative to the sibling NodeShape's left side.
Public method SetRightAnchor(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.
Public method SetRightAnchor(NodeShape, AnchoringBehavior.Edge, Double) Anchors the ShapeField's right side to a particular side of a sibling NodeShape.
Public method SetRightAnchor(ShapeField, AnchoringBehavior.Edge, Double) Anchors the ShapeField's right side to a particular side of a sibling ShapeField.
Public method 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 method SetTopAnchor(AnchoringBehavior.Edge, Double) Anchors the ShapeField's top side to a particular side of the parent ShapeElement.
Public method 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 method 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 method SetTopAnchor(NodeShape, AnchoringBehavior.Edge, Double) Anchors the ShapeField's top side to a particular side of a sibling NodeShape.
Public method SetTopAnchor(ShapeField, AnchoringBehavior.Edge, Double) Anchors the ShapeField's top side to a particular side of a sibling ShapeField.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Examples

For an example, see AnchoringBehavior.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace