Delen via


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)

Syntax

'Declaration
Protected Overrides Sub AutoSizeLabel ( _
    labelText As String _
)
protected override void AutoSizeLabel(
    string labelText
)
protected:
virtual void AutoSizeLabel(
    String^ labelText
) override
abstract AutoSizeLabel : 
        labelText:string -> unit  
override AutoSizeLabel : 
        labelText:string -> unit
protected override function AutoSizeLabel(
    labelText : String
)

Parameters

.NET Framework Security

See Also

Reference

LineLabelShape Class

AutoSizeLabel Overload

Microsoft.VisualStudio.Modeling.Diagrams Namespace