LineLabelShape::AutoSizeLabel Method (String^)

 

Automatically sizes this LabelShape based on the text that's passed in. Must be in a transaction to call this method because it updates shape bounds.

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

protected:
virtual void AutoSizeLabel(
	String^ labelText
) override

Parameters

labelText
Type: System::String^
text

text to size the LabelShape to fit.

Return to top
Show: