TextField.GetDisplayText Method
Gets the text to be displayed by this field.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaration
Public Overridable Function GetDisplayText ( _
parentShape As ShapeElement _
) As String
public virtual string GetDisplayText(
ShapeElement parentShape
)
public:
virtual String^ GetDisplayText(
ShapeElement^ parentShape
)
abstract GetDisplayText :
parentShape:ShapeElement -> string
override GetDisplayText :
parentShape:ShapeElement -> string
public function GetDisplayText(
parentShape : ShapeElement
) : String
Parameters
- parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
The parent ShapeElement of this field.
Return Value
Type: System.String
Remarks
Override this method to customize your text prior to drawing. By default it returns GetValue(shapeElement).ToString()
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.