TextField.GetAutoSize(ShapeElement) 方法

定义

如果为 true,则文本字段所需的最小大小会增长,以容纳显示文本的长度。 Autosizable 文本字段仍将遵循 AnchoringBehavior 中指定的最小大小。

public:
 virtual bool GetAutoSize(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual bool GetAutoSize (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetAutoSize : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> bool
override this.GetAutoSize : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> bool
Public Overridable Function GetAutoSize (parentShape As ShapeElement) As Boolean

参数

parentShape
ShapeElement

返回

Boolean

注解

多行文本字段不支持此选项。

适用于