共用方式為


ShapeElement.AllowsChildrenToShrinkParent Property

If true, this shape will reduce in size to fit around its children when they are re-sized or moved.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
Public Overridable ReadOnly Property AllowsChildrenToShrinkParent As ResizeDirection
    Get
public virtual ResizeDirection AllowsChildrenToShrinkParent { get; }
public:
virtual property ResizeDirection AllowsChildrenToShrinkParent {
    ResizeDirection get ();
}
abstract AllowsChildrenToShrinkParent : ResizeDirection
override AllowsChildrenToShrinkParent : ResizeDirection
function get AllowsChildrenToShrinkParent () : ResizeDirection

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.ResizeDirection

Remarks

Default value is false.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

MinimumSize