TextField.GetStringFormat(ShapeElement) 方法

定义

获取用于为指定的 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。

返回

StringFormat

用于为指定的 ShapeElement 实例绘制文本的字符串格式。

注解

默认情况下,此方法返回此 ShapeField 的默认字符串格式。

若要为此 ShapeField 动态更改字符串格式,请重写此方法。

适用于