TextField.GetDisplayText(ShapeElement) 方法

定义

获取此字段要显示的文本。

public:
 virtual System::String ^ GetDisplayText(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ parentShape);
public virtual string GetDisplayText (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement parentShape);
abstract member GetDisplayText : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> string
override this.GetDisplayText : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> string
Public Overridable Function GetDisplayText (parentShape As ShapeElement) As String

参数

parentShape
ShapeElement

此字段的父 ShapeElement。

返回

String

此字段要显示的文本。

注解

重写此方法可在绘制之前自定义文本。

适用于