다음을 통해 공유


TextField.GetStringFormat(ShapeElement) Method

Definition

Gets the string format to draw the text with for the specified ShapeElement instance.

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

Parameters

parentShape
ShapeElement

The ShapeElement on which to draw.

Returns

The string format to draw the text with for the specified ShapeElement instance.

Remarks

By default, this method returns the default string format of this ShapeField.

To dynamically change the string format for this ShapeField, override this method.

Applies to