Udostępnij za pośrednictwem


KeepInParentRule Class

Definition

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
KeepInParentRule
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.

Applies to