TextField.GetAutoSize(ShapeElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
如果为 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
返回
注解
多行文本字段不支持此选项。