KeepInParentRule Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Bounds rule that keeps the shape within the boundary of the diagram.
public ref class KeepInParentRule : Microsoft::VisualStudio::Modeling::Diagrams::BoundsRules
[System.Serializable]
public class KeepInParentRule : Microsoft.VisualStudio.Modeling.Diagrams.BoundsRules
[<System.Serializable>]
type KeepInParentRule = class
inherit BoundsRules
Public Class KeepInParentRule
Inherits BoundsRules
- Inheritance
- Attributes
Constructors
KeepInParentRule() |
Initializes a new instance of the KeepInDiagramRule class. |
Properties
Instance |
Gets the singleton instance of this class. |
Methods
GetCompliantBounds(ShapeElement, RectangleD) |
Returns the compliant bounds in world units relative to the top-left of the parent using this bounds rule. |
GetMargin(ShapeElement) |
Gets the minimum margin in world units between the shape and the diagram boundary. |