次の方法で共有


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

Name Description
KeepInParentRule()

Initializes a new instance of the KeepInDiagramRule class.

Properties

Name Description
Instance

Gets the singleton instance of this class.

Methods

Name Description
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