TextField::GetStringFormat Method (ShapeElement^)

 

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

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

public:
virtual StringFormat^ GetStringFormat(
	ShapeElement^ parentShape
)

Parameters

parentShape
Type: Microsoft.VisualStudio.Modeling.Diagrams::ShapeElement^

The ShapeElement on which to draw.

Return Value

Type: System.Drawing::StringFormat^

By default, this method returns the default string format of this ShapeField. To dynamically change the string format for this ShapeField, override this method.

Return to top
Show: