TextField.GetStringFormat(ShapeElement) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取用于为指定的 ShapeElement 实例绘制文本的字符串格式。
public:
virtual System::Drawing::StringFormat ^ GetStringFormat(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual System.Drawing.StringFormat GetStringFormat (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetStringFormat : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> System.Drawing.StringFormat
override this.GetStringFormat : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> System.Drawing.StringFormat
Public Overridable Function GetStringFormat (parentShape As ShapeElement) As StringFormat
参数
- parentShape
- ShapeElement
要在其上绘制的 ShapeElement。
返回
用于为指定的 ShapeElement 实例绘制文本的字符串格式。
注解
默认情况下,此方法返回此 ShapeField 的默认字符串格式。
若要为此 ShapeField 动态更改字符串格式,请重写此方法。